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.

Fixes: a310577766d6 ("test/security: add inline IPsec reassembly cases")

Cc: [email protected]
Signed-off-by: Aarnav JP <[email protected]>
---
 app/test/test_security_inline_proto_vectors.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/app/test/test_security_inline_proto_vectors.h 
b/app/test/test_security_inline_proto_vectors.h
index 86dfa54777..b2566654e9 100644
--- a/app/test/test_security_inline_proto_vectors.h
+++ b/app/test/test_security_inline_proto_vectors.h
@@ -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,
        },
 };
 
-- 
2.43.0

Reply via email to