Skip to content

Commit e51f92f

Browse files
committed
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. Signed-off-by: Paul Moore <[email protected]>
1 parent 25296c6 commit e51f92f

File tree

1 file changed

+1
-1
lines changed
  • tests/netfilter_pkt

1 file changed

+1
-1
lines changed

tests/netfilter_pkt/test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ for ( 0 .. $#tests ) {
147147
}
148148

149149
for ( 0 .. $#tests ) {
150-
ok( $fields[$_] == $fields ); # $_ Correct number of fields?
150+
ok( $fields[$_] >= $fields ); # $_ Correct number of fields?
151151
}
152152

153153
###

0 commit comments

Comments
 (0)