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.

Signed-off-by: Paul Moore <[email protected]>
---
 tests/netfilter_pkt/test | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/netfilter_pkt/test b/tests/netfilter_pkt/test
index 7530e9d80308..f9e586a660bc 100755
--- a/tests/netfilter_pkt/test
+++ b/tests/netfilter_pkt/test
@@ -147,7 +147,7 @@ for ( 0 .. $#tests ) {
 }
 
 for ( 0 .. $#tests ) {
-    ok( $fields[$_] == $fields );    # $_ Correct number of fields?
+    ok( $fields[$_] >= $fields );    # $_ Correct number of fields?
 }
 
 ###
-- 
2.52.0


Reply via email to