pluto: Added support for statically configured reqids.
authorTobias Brunner <tobias@strongswan.org>
Thu, 2 Sep 2010 14:05:21 +0000 (16:05 +0200)
committerTobias Brunner <tobias@strongswan.org>
Thu, 2 Sep 2010 17:04:25 +0000 (19:04 +0200)
src/pluto/connections.c
src/starter/ipsec.conf.5.in

index e40641a..b801ee8 100644 (file)
@@ -1191,7 +1191,7 @@ void add_connection(const whack_message_t *wm)
                }
 
                c->spd.next = NULL;
-               c->spd.reqid = gen_reqid();
+               c->spd.reqid = wm->reqid ?: gen_reqid();
 
                c->spd.mark_in.value = wm->mark_in.value;
                c->spd.mark_in.mask = wm->mark_in.mask;
index de19cec..f69e222 100644 (file)
@@ -944,7 +944,7 @@ synonym for
 .BR margintime .
 .TP
 .B reqid
-sets the reqid for a given connection to a pre-configured fixed value (IKEv2 only).
+sets the reqid for a given connection to a pre-configured fixed value.
 .TP
 .B type
 the type of the connection; currently the accepted values