test: fix 5-fragment IP reassembly test vectors
PATCH 1/1 test: fix 5-fragment IP reassembly test vectors
Fix UDP source port bytes (0x80 -> 0x08) in IPv4 and IPv6 first fragments, and fix IPv6 full packet next_header field (0x2c -> 0x11) to indicate UDP instead of Fragment header.
--- app/test/test_security_inline_proto_vectors.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
app/test/test_security_inline_proto_vectors.h +3 -3
@@ -217,7 +217,7 @@ struct ip_reassembly_test_packet pkt_ipv6_udp_p3 = { .l4_offset = 40, .data = {/* IP */ -0x60 ,0x00 ,0x00 ,0x00 ,0x16 ,0x6e ,0x2c ,0x40 , +0x60 ,0x00 ,0x00 ,0x00 ,0x16 ,0x6e ,0x11 ,0x40 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0xff ,0xff ,0x0d ,0x00 ,0x00 ,0x02 , 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
@@ -241,7 +241,7 @@ struct ip_reassembly_test_packet pkt_ipv6_udp_p3_f1 = { 0x11, 0x00, 0x00, 0x01, 0x65, 0xcf, 0x5a, 0xae,/* UDP */ - 0x80, 0x00, 0x27, 0x10, 0x16, 0x6e, 0x2f, 0x99, + 0x08, 0x00, 0x27, 0x10, 0x16, 0x6e, 0x2f, 0x99, }, };
@@ -439,7 +439,7 @@ struct ip_reassembly_test_packet pkt_ipv4_udp_p3_f1 = { 0x02, 0x00, 0x00, 0x02,/* UDP */ - 0x80, 0x00, 0x27, 0x10, 0x16, 0x82, 0xbb, 0xfd, + 0x08, 0x00, 0x27, 0x10, 0x16, 0x82, 0xbb, 0xfd, }, };
Signature · 1 line
2.43.0
Akhil Goyal
AppliedQuoted 17 lines
-----Original Message-----
From: Aarnav JP <[email protected]>
Sent: Thursday, September 17, 2026 11:49 AM
To: [email protected]; Akhil Goyal <[email protected]>; Anoob Joseph <[email protected]>; Fan Zhang <[email protected]>
Cc: Jerin Jacob <[email protected]>; Nithin Kumar Dabilpuram <[email protected]>; Rahul Bhansali <[email protected]>; Aarnav JP <[email protected]>; [email protected]
Subject: [PATCH] test: fix 5-fragment IP reassembly test vectorsFix UDP source port bytes (
0x80->0x08) in IPv4 and IPv6 first fragments, and fix IPv6 full packetnext_headerfield (0x2c->0x11) to indicate UDP instead of Fragment header.
Quoted 4 lines
Fixes a310577766d6 ("test/security: add inline IPsec reassembly cases")Signed-off-by Aarnav JP <[email protected]>
Applied to dpdk-next-crypto
Thanks.