]> git.ipfire.org Git - thirdparty/nftables.git/commit
proto: use hexadecimal to display ip frag-off field
authorPablo Neira Ayuso <pablo@netfilter.org>
Tue, 29 Aug 2023 15:46:03 +0000 (17:46 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 30 Aug 2023 07:39:58 +0000 (09:39 +0200)
commit67edd1f2330a31e93789639d31315b64d01a79a3
treeebb56759b647461b6e684c5f3f4b3d2c91d5192c
parent01167c393a12c74c6f9a3015b75702964ff5bcda
proto: use hexadecimal to display ip frag-off field

The ip frag-off field in the protocol definition is 16-bits long
and it contains the DF (0x2000) and MF (0x4000) bits too.

iptables-translate also suggests:

ip frag-off & 0x1ffff != 0

to match on fragments. Use hexadecimal for listing this header field.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
src/proto.c
tests/py/ip/ip.t
tests/py/ip/ip.t.json
tests/py/ip/ip.t.payload
tests/py/ip/ip.t.payload.bridge
tests/py/ip/ip.t.payload.inet
tests/py/ip/ip.t.payload.netdev