Skip to contentSkip to conversation

examples/ipsec-secgw: fix handling IPv6 extension headers

PATCH Applied Konstantin Ananyev 2 participants 2 messages Apr 29, 2021 – May 5, 2021

lore
Share & tools
lore
#0 lore raw

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")
---
 examples/ipsec-secgw/ipsec-secgw.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
examples/ipsec-secgw/ipsec-secgw.c +1 -1
index a9f9b5859..f252d3498 100644
@@ -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
Acked-by on v1 1/1 Applied
#1 lore raw
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")

---

Applied to dpdk-next-crypto

Thanks.