diff options
author | Martin Willi <martin@revosec.ch> | 2014-06-16 17:31:43 +0200 |
---|---|---|
committer | Martin Willi <martin@revosec.ch> | 2014-06-17 16:41:30 +0200 |
commit | 30c009c2fea0a51d3e899ce64418ba4e3e7b3865 (patch) | |
tree | 02a161d0f05e90f1ea29fa9f426b5b712dca7ac4 /src/libhydra/plugins/kernel_pfkey | |
parent | bdcaa5e680b6b9f9637c7f513e3953dddfc0e7f7 (diff) | |
download | strongswan-30c009c2fea0a51d3e899ce64418ba4e3e7b3865.tar.bz2 strongswan-30c009c2fea0a51d3e899ce64418ba4e3e7b3865.tar.xz |
kernel-interface: Add a replay_window parameter to add_sa()
Diffstat (limited to 'src/libhydra/plugins/kernel_pfkey')
-rw-r--r-- | src/libhydra/plugins/kernel_pfkey/kernel_pfkey_ipsec.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/libhydra/plugins/kernel_pfkey/kernel_pfkey_ipsec.c b/src/libhydra/plugins/kernel_pfkey/kernel_pfkey_ipsec.c index c865917e4..40e182390 100644 --- a/src/libhydra/plugins/kernel_pfkey/kernel_pfkey_ipsec.c +++ b/src/libhydra/plugins/kernel_pfkey/kernel_pfkey_ipsec.c @@ -1615,8 +1615,9 @@ METHOD(kernel_ipsec_t, add_sa, status_t, u_int8_t protocol, u_int32_t reqid, mark_t mark, u_int32_t tfc, lifetime_cfg_t *lifetime, u_int16_t enc_alg, chunk_t enc_key, u_int16_t int_alg, chunk_t int_key, ipsec_mode_t mode, - u_int16_t ipcomp, u_int16_t cpi, bool initiator, bool encap, bool esn, - bool inbound, traffic_selector_t *src_ts, traffic_selector_t *dst_ts) + u_int16_t ipcomp, u_int16_t cpi, u_int32_t replay_window, + bool initiator, bool encap, bool esn, bool inbound, + traffic_selector_t *src_ts, traffic_selector_t *dst_ts) { unsigned char request[PFKEY_BUFFER_SIZE]; struct sadb_msg *msg, *out; @@ -1633,7 +1634,7 @@ METHOD(kernel_ipsec_t, add_sa, status_t, lifetime_cfg_t lft = {{0,0,0},{0,0,0},{0,0,0}}; add_sa(this, src, dst, htonl(ntohs(cpi)), IPPROTO_COMP, reqid, mark, tfc, &lft, ENCR_UNDEFINED, chunk_empty, AUTH_UNDEFINED, - chunk_empty, mode, ipcomp, 0, FALSE, FALSE, FALSE, inbound, + chunk_empty, mode, ipcomp, 0, 0, FALSE, FALSE, FALSE, inbound, NULL, NULL); ipcomp = IPCOMP_NONE; /* use transport mode ESP SA, IPComp uses tunnel mode */ |