diff options
author | Tobias Brunner <tobias@strongswan.org> | 2009-08-27 18:10:39 +0200 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2009-09-01 12:53:44 +0200 |
commit | abff49a7ffd0b4941ec302e587b2701327f32864 (patch) | |
tree | 646ede3c56f99b173f65e7e936a3a5c458c9baa7 /src/charon/plugins/stroke | |
parent | ca41aa0602ed92a6f3e0e38688424322c2312dbf (diff) | |
download | strongswan-abff49a7ffd0b4941ec302e587b2701327f32864.tar.bz2 strongswan-abff49a7ffd0b4941ec302e587b2701327f32864.tar.xz |
Handling of new lifetime limits added to stroke.
Diffstat (limited to 'src/charon/plugins/stroke')
-rw-r--r-- | src/charon/plugins/stroke/stroke_config.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/charon/plugins/stroke/stroke_config.c b/src/charon/plugins/stroke/stroke_config.c index 5a4dfe264..c76fd1622 100644 --- a/src/charon/plugins/stroke/stroke_config.c +++ b/src/charon/plugins/stroke/stroke_config.c @@ -772,6 +772,14 @@ static child_cfg_t *build_child_cfg(private_stroke_config_t *this, msg->add_conn.rekey.ipsec_lifetime, msg->add_conn.rekey.ipsec_lifetime - msg->add_conn.rekey.margin, msg->add_conn.rekey.margin * msg->add_conn.rekey.fuzz / 100); + LIFETIME_CFG_SET(lifetime, bytes, + msg->add_conn.rekey.life_bytes, + msg->add_conn.rekey.life_bytes - msg->add_conn.rekey.margin_bytes, + msg->add_conn.rekey.margin_bytes * msg->add_conn.rekey.fuzz / 100); + LIFETIME_CFG_SET(lifetime, packets, + msg->add_conn.rekey.life_packets, + msg->add_conn.rekey.life_packets - msg->add_conn.rekey.margin_packets, + msg->add_conn.rekey.margin_packets * msg->add_conn.rekey.fuzz / 100); child_cfg = child_cfg_create( msg->add_conn.name, lifetime, |