]> git.ipfire.org Git - thirdparty/nftables.git/commit
src: meta: always prefix 'meta' for almost all tokens
authorFlorian Westphal <fw@strlen.de>
Tue, 3 Jul 2018 14:16:51 +0000 (16:16 +0200)
committerFlorian Westphal <fw@strlen.de>
Sat, 21 Jul 2018 09:30:56 +0000 (11:30 +0200)
commit6dd848339444fecf95122579c1a1fe944a819b6d
tree3e26cbf7eeb3e5023fb0f95f0721680df6aa772f
parent0b97683b33be6f703fa93222d0b35a6abad0b514
src: meta: always prefix 'meta' for almost all tokens

got following bug report:

nft add ... ct mark set mark and 0x10

... always sets 0.
What reporter meant to write instead was 'ct mark', not 'mark'.

We can't just remove support for 'mark' and force
'meta mark', but we can start to discourage it by printing meta prefix too.

Later on, we could start to print deprecation warning if needed.
Followup patch can also change
"iifname" etc. to "meta iifname".

Signed-off-by: Florian Westphal <fw@strlen.de>
19 files changed:
doc/nft.xml
src/meta.c
tests/py/any/ct.t
tests/py/any/dup.t
tests/py/any/dup.t.json
tests/py/any/dup.t.payload
tests/py/any/fwd.t
tests/py/any/fwd.t.json
tests/py/any/fwd.t.json.output
tests/py/any/fwd.t.payload
tests/py/any/meta.t
tests/py/bridge/meta.t
tests/py/bridge/reject.t
tests/py/inet/map.t
tests/py/inet/reject.t
tests/py/ip/ip_tcp.t
tests/py/ip/reject.t
tests/py/ip6/map.t
tests/py/ip6/reject.t