examples/ipsec-secgw: fix handling IPv6 extension headers
PATCH 1/1 examples/ipsec-secgw: fix handling IPv6 extension headers
Recent patch to support UDP encapsulation introduced problem with handling inbound IPv6 packets with header extensions. This patch aims to fix the issue.
Bugzilla ID: 695
Fixes 9a1cc8f1ed74 ("examples/ipsec-secgw: support UDP encapsulation")
Reported-by Vladimir Medvedkin <[email protected]>
Signed-off-by Konstantin Ananyev <[email protected]>
--- examples/ipsec-secgw/ipsec-secgw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
examples/ipsec-secgw/ipsec-secgw.c +1 -1
@@ -426,7 +426,7 @@ prepare_one_packet(struct rte_mbuf *pkt, struct ipsec_traffic *t)return ; } -switch (iph6->proto) { +switch (next_proto) {case IPPROTO_ESP : t->ipsec.pkts[(t->ipsec.num)++] = pkt;break ;
Signature · 1 line
2.26.3
Quoted 10 lines
Recent patch to support UDP encapsulation introduced problem with handling inbound IPv6 packets with header extensions. This patch aims to fix the issue.
Bugzilla ID: 695
Fixes 9a1cc8f1ed74 ("examples/ipsec-secgw: support UDP encapsulation")Reported-by Vladimir Medvedkin <[email protected]>Signed-off-by Konstantin Ananyev <[email protected]>---
Acked-by Akhil Goyal <[email protected]>
Applied to dpdk-next-crypto
Thanks.