[strongSwan-dev] [PATCH 1/4] Add reqid keyword to config connection section.
Adrian-Ken Rueegsegger
rueegsegger at swiss-it.ch
Thu Apr 22 17:03:27 CEST 2010
From: Reto Buerki <buerki at swiss-it.ch>
---
src/starter/args.c | 1 +
src/starter/confread.h | 1 +
src/starter/keywords.h | 3 ++-
src/starter/keywords.txt | 1 +
4 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/src/starter/args.c b/src/starter/args.c
index c2614cd..48aef0b 100644
--- a/src/starter/args.c
+++ b/src/starter/args.c
@@ -233,6 +233,7 @@ static const token_info_t token_info[] =
{ ARG_ENUM, offsetof(starter_conn_t, me_mediation), LST_bool },
{ ARG_STR, offsetof(starter_conn_t, me_mediated_by), NULL },
{ ARG_STR, offsetof(starter_conn_t, me_peerid), NULL },
+ { ARG_UINT, offsetof(starter_conn_t, reqid), NULL },
/* ca section keywords */
{ ARG_STR, offsetof(starter_ca_t, name), NULL },
diff --git a/src/starter/confread.h b/src/starter/confread.h
index 199fab6..d727698 100644
--- a/src/starter/confread.h
+++ b/src/starter/confread.h
@@ -120,6 +120,7 @@ struct starter_conn {
u_int64_t sa_ipsec_margin_packets;
unsigned long sa_keying_tries;
unsigned long sa_rekey_fuzz;
+ u_int32_t reqid;
sa_family_t addr_family;
sa_family_t tunnel_addr_family;
bool install_policy;
diff --git a/src/starter/keywords.h b/src/starter/keywords.h
index 6c3907a..c845b30 100644
--- a/src/starter/keywords.h
+++ b/src/starter/keywords.h
@@ -96,9 +96,10 @@ typedef enum {
KW_MEDIATION,
KW_MEDIATED_BY,
KW_ME_PEERID,
+ KW_REQID,
#define KW_CONN_FIRST KW_CONN_SETUP
-#define KW_CONN_LAST KW_ME_PEERID
+#define KW_CONN_LAST KW_REQID
/* ca section keywords */
KW_CA_NAME,
diff --git a/src/starter/keywords.txt b/src/starter/keywords.txt
index 12037a6..8c05730 100644
--- a/src/starter/keywords.txt
+++ b/src/starter/keywords.txt
@@ -87,6 +87,7 @@ xauth, KW_XAUTH
mediation, KW_MEDIATION
mediated_by, KW_MEDIATED_BY
me_peerid, KW_ME_PEERID
+reqid, KW_REQID
cacert, KW_CACERT
ldaphost, KW_LDAPHOST
ldapbase, KW_LDAPBASE
--
1.6.3.3
More information about the Dev
mailing list