summaryrefslogtreecommitdiffstats
path: root/test/vpp_ipsec_tun_interface.py
diff options
context:
space:
mode:
authorNeale Ranns <nranns@cisco.com>2019-06-14 01:13:25 -0700
committerDamjan Marion <dmarion@me.com>2019-06-14 11:19:01 +0000
commita6bee0a11a07e4e1e4ac67e5041e9ad197766ba2 (patch)
tree260e9b7809b61d3e8efc043d2ac9a78013589b48 /test/vpp_ipsec_tun_interface.py
parentf5b017615d25b8fb8760fa6b9b7e4249d93c6564 (diff)
ipsec: Correctly rewind the buffer to the IP header when punting UDP encapped SPI-0 packets
Type: fix Fixes: b71fa75d48 Change-Id: I2d81b373f7659e702759939c096b315afa36f621 Signed-off-by: Neale Ranns <nranns@cisco.com>
Diffstat (limited to 'test/vpp_ipsec_tun_interface.py')
-rw-r--r--test/vpp_ipsec_tun_interface.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/vpp_ipsec_tun_interface.py b/test/vpp_ipsec_tun_interface.py
index bc689b321f0..223ea4df154 100644
--- a/test/vpp_ipsec_tun_interface.py
+++ b/test/vpp_ipsec_tun_interface.py
@@ -9,6 +9,7 @@ class VppIpsecTunInterface(VppTunnelInterface):
def __init__(self, test, parent_if, local_spi,
remote_spi, crypto_alg, local_crypto_key, remote_crypto_key,
integ_alg, local_integ_key, remote_integ_key, salt=0,
+ udp_encap=False,
is_ip6=False):
super(VppIpsecTunInterface, self).__init__(test, parent_if)
self.local_spi = local_spi
@@ -26,6 +27,7 @@ class VppIpsecTunInterface(VppTunnelInterface):
else:
self.local_ip = self.parent_if.local_ip4
self.remote_ip = self.parent_if.remote_ip4
+ self.udp_encap = False
def add_vpp_config(self):
r = self.test.vapi.ipsec_tunnel_if_add_del(
@@ -33,7 +35,8 @@ class VppIpsecTunInterface(VppTunnelInterface):
self.remote_spi, self.local_spi,
self.crypto_alg, self.local_crypto_key, self.remote_crypto_key,
self.integ_alg, self.local_integ_key, self.remote_integ_key,
- salt=self.salt)
+ salt=self.salt,
+ udp_encap=self.udp_encap)
self.set_sw_if_index(r.sw_if_index)
self.generate_remote_hosts()
self.test.registry.register(self, self.test.logger)