From: Konstantin Ananyev Date: Thu, 29 Apr 2021 10:47:57 +0000 (+0100) Subject: examples/ipsec-secgw: fix handling IPv6 extension headers X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=1c91424d0a4327634e3e0534c53d75aac02da410;p=dpdk.git 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 Signed-off-by: Konstantin Ananyev Acked-by: Akhil Goyal --- diff --git a/examples/ipsec-secgw/ipsec-secgw.c b/examples/ipsec-secgw/ipsec-secgw.c index a9f9b5859b..f252d34985 100644 --- a/examples/ipsec-secgw/ipsec-secgw.c +++ b/examples/ipsec-secgw/ipsec-secgw.c @@ -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;