]> git.ipfire.org Git - thirdparty/nftables.git/commit
ct: allow numeric conntrack labels
authorFlorian Westphal <fw@strlen.de>
Wed, 17 Aug 2016 16:19:26 +0000 (18:19 +0200)
committerFlorian Westphal <fw@strlen.de>
Mon, 22 Aug 2016 16:36:43 +0000 (18:36 +0200)
commit0b4bdb894f1225f1045fd9d12f6d975f27e6c368
treefe9e7c023443054f00a8e06f6cb2e31d977d021f
parent81595230a20ebb500763a68dd1969a2a6db5a9de
ct: allow numeric conntrack labels

When dumping labels in rule list we try to print a symbolic name.
If we don't find one, we print the bit number instead.

This changes nft to also allow use of the number instead of a name
when adding ct label rules so that such dumps can also be restored
again.

This is similar to other cases, e.g. skuid root vs skuid 0 which
are both valid.

Signed-off-by: Florian Westphal <fw@strlen.de>
Acked-by: Pablo Neira Ayuso <pablo@netfilter.org>
src/ct.c