[PATCH nft] tests/py: add missing payload test for numgen offset

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The new cover test for:

	ct mark set numgen inc mod 2 offset 100

is lacking the payload file chunk.

Signed-off-by: Pablo Neira Ayuso <pablo@xxxxxxxxxxxxx>
---
 tests/py/ip/numgen.t.payload | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/tests/py/ip/numgen.t.payload b/tests/py/ip/numgen.t.payload
index a548b5c8621e..a8ba21498795 100644
--- a/tests/py/ip/numgen.t.payload
+++ b/tests/py/ip/numgen.t.payload
@@ -22,3 +22,8 @@ ip test-ip4 pre
   [ lookup reg 1 set __map%d dreg 1 ]
   [ nat dnat ip addr_min reg 1 addr_max reg 0 ]
 
+# ct mark set numgen inc mod 2 offset 100
+ip test-ip4 pre
+  [ numgen reg 1 = inc mod 2 offset 100 ]
+  [ ct set mark with reg 1 ]
+
-- 
2.1.4

--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux