Added keywords for the new lifetime limits to starter.
This commit is contained in:
@@ -208,6 +208,10 @@ static const token_info_t token_info[] =
|
||||
{ ARG_TIME, offsetof(starter_conn_t, sa_ike_life_seconds), NULL },
|
||||
{ ARG_TIME, offsetof(starter_conn_t, sa_ipsec_life_seconds), NULL },
|
||||
{ ARG_TIME, offsetof(starter_conn_t, sa_rekey_margin), NULL },
|
||||
{ ARG_ULLI, offsetof(starter_conn_t, sa_ipsec_life_bytes), NULL },
|
||||
{ ARG_ULLI, offsetof(starter_conn_t, sa_ipsec_margin_bytes), NULL },
|
||||
{ ARG_ULLI, offsetof(starter_conn_t, sa_ipsec_life_packets), NULL },
|
||||
{ ARG_ULLI, offsetof(starter_conn_t, sa_ipsec_margin_packets), NULL },
|
||||
{ ARG_MISC, 0, NULL /* KW_KEYINGTRIES */ },
|
||||
{ ARG_PCNT, offsetof(starter_conn_t, sa_rekey_fuzz), NULL },
|
||||
{ ARG_MISC, 0, NULL /* KW_REKEY */ },
|
||||
|
||||
@@ -112,6 +112,10 @@ struct starter_conn {
|
||||
time_t sa_ike_life_seconds;
|
||||
time_t sa_ipsec_life_seconds;
|
||||
time_t sa_rekey_margin;
|
||||
u_int64_t sa_ipsec_life_bytes;
|
||||
u_int64_t sa_ipsec_margin_bytes;
|
||||
u_int64_t sa_ipsec_life_packets;
|
||||
u_int64_t sa_ipsec_margin_packets;
|
||||
unsigned long sa_keying_tries;
|
||||
unsigned long sa_rekey_fuzz;
|
||||
sa_family_t addr_family;
|
||||
|
||||
@@ -66,7 +66,7 @@ typedef enum {
|
||||
KW_TYPE,
|
||||
KW_PFS,
|
||||
KW_COMPRESS,
|
||||
KW_INSTALLPOLICY,
|
||||
KW_INSTALLPOLICY,
|
||||
KW_AUTH,
|
||||
KW_AUTHBY,
|
||||
KW_EAP,
|
||||
@@ -76,6 +76,10 @@ typedef enum {
|
||||
KW_IKELIFETIME,
|
||||
KW_KEYLIFE,
|
||||
KW_REKEYMARGIN,
|
||||
KW_LIFEBYTES,
|
||||
KW_MARGINBYTES,
|
||||
KW_LIFEPACKETS,
|
||||
KW_MARGINPACKETS,
|
||||
KW_KEYINGTRIES,
|
||||
KW_REKEYFUZZ,
|
||||
KW_REKEY,
|
||||
|
||||
@@ -64,6 +64,10 @@ auth, KW_AUTH
|
||||
authby, KW_AUTHBY
|
||||
keylife, KW_KEYLIFE
|
||||
rekeymargin, KW_REKEYMARGIN
|
||||
lifebytes, KW_LIFEBYTES
|
||||
marginbytes, KW_MARGINBYTES
|
||||
lifepackets, KW_LIFEPACKETS
|
||||
marginpackets, KW_MARGINPACKETS
|
||||
ikelifetime, KW_IKELIFETIME
|
||||
keyingtries, KW_KEYINGTRIES
|
||||
rekeyfuzz, KW_REKEYFUZZ
|
||||
|
||||
Reference in New Issue
Block a user