]> 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>
Thu, 23 Jan 2025 00:35:34 +0000 (01:35 +0100)
commitd65166fac5649b83a361abc5decacd87cf230d43
tree8fb852cc65deefde666e5e0cfd1ffe420aef888d
parent8b18ea5e1c4f52d9202589e66dccf41ffa6f0576
proto: use hexadecimal to display ip frag-off field

commit 67edd1f2330a31e93789639d31315b64d01a79a3 upstream.

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