Skip to contentSkip to conversation

tests/netfilter_pkt: allow for a greater number of netfilter fields

PATCH In review Paul Moore 2 participants 3 messages Dec 16, 2025 – Dec 17, 2025 Audit

lore
Share & tools
lore

Paul Moore

author maintainer
#0 lore raw

PATCH 1/1 tests/netfilter_pkt: allow for a greater number of netfilter fields

Current in-development kernels include source and destination port fields in the NETFILTER_PKT record, adjust the test so that both old and new formats are supported.

Future work could include verification of these additional fields, but put this quick fix in place now.

---
 tests/netfilter_pkt/test | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/netfilter_pkt/test +1 -1
index 7530e9d80308..f9e586a660bc 100755
@@ -147,7 +147,7 @@ for ( 0 .. $#tests ) {
 }
 
 for ( 0 .. $#tests ) {
-    ok( $fields[$_] == $fields );    # $_ Correct number of fields?
+    ok( $fields[$_] >= $fields );    # $_ Correct number of fields?
 }
 
 ###
Signature · 1 line
2.52.0
author maintainer
#1 lore raw
Quoted 5 lines · Paul Moore

Current in-development kernels include source and destination port fields in the NETFILTER_PKT record, adjust the test so that both old and new formats are supported.

Quoted 7 lines

Future work could include verification of these additional fields, but put this quick fix in place now.

---
 tests/netfilter_pkt/test | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Merged.

Signature · 1 line
paul-moore.com
#2 lore raw
Quoted 8 lines · Paul Moore
Quoted 7 lines · Paul Moore

Current in-development kernels include source and destination port fields in the NETFILTER_PKT record, adjust the test so that both old and new formats are supported.

Future work could include verification of these additional fields, but put this quick fix in place now.

Quoted 6 lines
Quoted 4 lines
---
 tests/netfilter_pkt/test | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Merged.

Thank you.

Quoted 1 line

paul-moore.com

- RGB

--
Richard Guy Briggs <[email protected]>
Sr. S/W Engineer, Kernel Security, Base Operating Systems Remote, Ottawa, Red Hat Canada
Upstream IRC: SunRaycer
Voice: +1.613.860 2354 SMS: +1.613.518.6570