ipsec: new api for sa ips and ports updates 59/37059/11
authorArthur de Kerhor <arthurdekerhor@gmail.com>
Wed, 31 Aug 2022 17:13:03 +0000 (19:13 +0200)
committerBeno�t Ganne <bganne@cisco.com>
Fri, 16 Dec 2022 10:13:24 +0000 (10:13 +0000)
commit4117b24acb4241d7f2ef38248bc254f6a4a7b422
tree982eb58cbe8cfd0d43e2a09e129d129c1a8a5511
parent863d1c8711018ded9bd4db5f27851a0b8ac45836
ipsec: new api for sa ips and ports updates

Useful to update the tunnel paramaters and udp ports (NAT-T) of an SA
without having to rekey. Could be done by deleting and re-adding the
SA but it would not preserve the anti-replay window if there is one.
Use case: a nat update/reboot between the 2 endpoints of the tunnel.

Type: feature
Change-Id: Icf5c0aac218603e8aa9a008ed6f614e4a6db59a0
Signed-off-by: Arthur de Kerhor <arthurdekerhor@gmail.com>
src/vnet/ipsec/ipsec.api
src/vnet/ipsec/ipsec_api.c
src/vnet/ipsec/ipsec_sa.c
src/vnet/ipsec/ipsec_sa.h
src/vnet/ipsec/ipsec_test.c
test/template_ipsec.py
test/test_ipsec_tun_if_esp.py
test/vpp_ipsec.py