From b5be105aaf871776975a895ced129bb614e88626 Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Thu, 2 Sep 2010 16:05:21 +0200 Subject: [PATCH] pluto: Added support for statically configured reqids. --- src/pluto/connections.c | 2 +- src/starter/ipsec.conf.5.in | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pluto/connections.c b/src/pluto/connections.c index e40641a..b801ee8 100644 --- a/src/pluto/connections.c +++ b/src/pluto/connections.c @@ -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; diff --git a/src/starter/ipsec.conf.5.in b/src/starter/ipsec.conf.5.in index de19cec..f69e222 100644 --- a/src/starter/ipsec.conf.5.in +++ b/src/starter/ipsec.conf.5.in @@ -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 -- 2.7.4