From: Pablo Neira Ayuso Date: Mon, 31 Oct 2016 12:33:34 +0000 (+0100) Subject: tests/py: add missing payload test for numgen offset X-Git-Tag: v0.7~52 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6c00ab9db921c1a2059eb3ea45769a12e0597236;p=thirdparty%2Fnftables.git tests/py: add missing payload test for numgen offset The new cover test for: ct mark set numgen inc mod 2 offset 100 was lacking the payload file chunk. Signed-off-by: Pablo Neira Ayuso --- diff --git a/tests/py/ip/numgen.t.payload b/tests/py/ip/numgen.t.payload index a548b5c8..a8ba2149 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 ] +