]> git.ipfire.org Git - thirdparty/nftables.git/commit
tests/py: fix fragment-offset field
authorPablo Neira Ayuso <pablo@netfilter.org>
Wed, 11 May 2016 18:22:48 +0000 (20:22 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 11 May 2016 21:01:31 +0000 (23:01 +0200)
commiteec0f4e8dedffa268f626a06a7d490b9af1d8f62
treeda65e3ea96bf530cb2989da9897fce9f8492526b
parent79b4dde30d516b1105a04a3037e0b2ca23670890
tests/py: fix fragment-offset field

Set elements were miscalculated.

After this patch:

element 00000801  : 0 [end]
            ^^^^

Which looks correct according to my calculations:

>>> print hex(socket.htons(33 << 3))
0x801
^^^^^

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
tests/py/ip6/frag.t.payload.inet
tests/py/ip6/frag.t.payload.ip6