From: Tobias Brunner Date: Thu, 26 Sep 2013 08:15:03 +0000 (+0200) Subject: starter: Don't ignore keyingtries with rekey=no X-Git-Tag: 5.1.1dr4~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a2cebbe6742c2bc8e08d8d2569c5bc0bd8fb0c3a;p=thirdparty%2Fstrongswan.git starter: Don't ignore keyingtries with rekey=no Since keyingtries also affects the number of retries initially or when reestablishing an SA it should not be affected by the rekey option. Fixes #418. --- diff --git a/src/starter/starterstroke.c b/src/starter/starterstroke.c index f4541937b9..bf7e0284fd 100644 --- a/src/starter/starterstroke.c +++ b/src/starter/starterstroke.c @@ -176,9 +176,10 @@ int starter_stroke_add_conn(starter_config_t *cfg, starter_conn_t *conn) msg.add_conn.rekey.margin_bytes = conn->sa_ipsec_margin_bytes; msg.add_conn.rekey.life_packets = conn->sa_ipsec_life_packets; msg.add_conn.rekey.margin_packets = conn->sa_ipsec_margin_packets; - msg.add_conn.rekey.tries = conn->sa_keying_tries; msg.add_conn.rekey.fuzz = conn->sa_rekey_fuzz; } + msg.add_conn.rekey.tries = conn->sa_keying_tries; + msg.add_conn.mobike = conn->options & SA_OPTION_MOBIKE; msg.add_conn.force_encap = conn->options & SA_OPTION_FORCE_ENCAP; msg.add_conn.fragmentation = conn->fragmentation;