diff options
author | Reto Buerki <buerki@swiss-it.ch> | 2010-04-22 17:03:29 +0200 |
---|---|---|
committer | Martin Willi <martin@revosec.ch> | 2010-05-04 14:38:34 +0200 |
commit | 277fcf9f86b03bcedca1e876fdd293f65f7f16a8 (patch) | |
tree | ea6f7391188eda0678aa9d1e7bfa4fb9dd3ea323 /src/libcharon/config/child_cfg.h | |
parent | 1f83541d7bedf3876b8618ef3f45d303d97f9ec7 (diff) | |
download | strongswan-277fcf9f86b03bcedca1e876fdd293f65f7f16a8.tar.bz2 strongswan-277fcf9f86b03bcedca1e876fdd293f65f7f16a8.tar.xz |
Add reqid field and getter function to child_cfg_t.
Diffstat (limited to 'src/libcharon/config/child_cfg.h')
-rw-r--r-- | src/libcharon/config/child_cfg.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/libcharon/config/child_cfg.h b/src/libcharon/config/child_cfg.h index c6186ea36..db86cd6aa 100644 --- a/src/libcharon/config/child_cfg.h +++ b/src/libcharon/config/child_cfg.h @@ -239,6 +239,13 @@ struct child_cfg_t { u_int32_t (*get_inactivity)(child_cfg_t *this); /** + * Specific reqid to use for CHILD_SA + * + * @return reqid + */ + u_int32_t (*get_reqid)(child_cfg_t *this); + + /** * Sets two options needed for Mobile IPv6 interoperability * * @param proxy_mode use IPsec transport proxy mode (default FALSE) @@ -299,12 +306,13 @@ struct child_cfg_t { * @param close_action close action * @param ipcomp use IPComp, if peer supports it * @param inactivity inactivity timeout in s before closing a CHILD_SA - * @return child_cfg_t object + * @param reqid specific reqid to use for CHILD_SA, 0 for auto assign + * @return child_cfg_t object */ child_cfg_t *child_cfg_create(char *name, lifetime_cfg_t *lifetime, char *updown, bool hostaccess, ipsec_mode_t mode, action_t dpd_action, action_t close_action, bool ipcomp, - u_int32_t inactivity); + u_int32_t inactivity, u_int32_t reqid); #endif /** CHILD_CFG_H_ @}*/ |