aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSylvain Cadilhac <sylvain.cadilhac@freepro.com>2023-07-28 23:36:35 +0200
committerNeale Ranns <neale@graphiant.com>2023-07-31 13:00:31 +0000
commit83ca6e66d090b91c84637d7a5ed6a91fa41f8359 (patch)
treeb3b11114e1c12ac4cc9d5c51e778e3dafca1a62b /src
parentc709f2cd9d915c221af13472aa43aff7ac791b52 (diff)
ipsec: fix IPv6 IPsec tunnel punting
Type: fix Buffer needs to be rewinded before being passed to punt-dispatch node. Change-Id: I43d103515d372e425f4c3b08ca1779398f1fced4 Signed-off-by: Sylvain Cadilhac <sylvain.cadilhac@freepro.com>
Diffstat (limited to 'src')
-rw-r--r--src/vnet/ipsec/ipsec_tun_in.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vnet/ipsec/ipsec_tun_in.c b/src/vnet/ipsec/ipsec_tun_in.c
index 9f1e2d6c5a1..a419d8c4fe8 100644
--- a/src/vnet/ipsec/ipsec_tun_in.c
+++ b/src/vnet/ipsec/ipsec_tun_in.c
@@ -278,6 +278,7 @@ ipsec_tun_protect_input_inline (vlib_main_t * vm, vlib_node_runtime_t * node,
else
{
next[0] = ipsec_ip6_if_no_tunnel (node, b[0], esp0, ip60);
+ vlib_buffer_advance (b[0], -buf_rewind0);
n_no_tunnel++;
goto trace00;
}