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>
This commit is contained in:
Sylvain Cadilhac
2023-07-28 23:36:35 +02:00
committed by Neale Ranns
parent c709f2cd9d
commit 83ca6e66d0

View File

@ -278,6 +278,7 @@ ipsec_tun_protect_input_inline (vlib_main_t * vm, vlib_node_runtime_t * node,
else else
{ {
next[0] = ipsec_ip6_if_no_tunnel (node, b[0], esp0, ip60); next[0] = ipsec_ip6_if_no_tunnel (node, b[0], esp0, ip60);
vlib_buffer_advance (b[0], -buf_rewind0);
n_no_tunnel++; n_no_tunnel++;
goto trace00; goto trace00;
} }