]> git.ipfire.org Git - thirdparty/nftables.git/commit
rule: print chain and flowtable devices in quotes
authorPablo Neira Ayuso <pablo@netfilter.org>
Tue, 8 Jul 2025 22:13:56 +0000 (00:13 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 9 Jul 2025 22:12:58 +0000 (00:12 +0200)
commiteb30f236d91a8d61ece789e28e6540b3a3fa2a6a
treeb3f7d15ce422d6f04da0c9598b90fe292305b7c0
parentcfd768615235bb89650f15498c70d19813502825
rule: print chain and flowtable devices in quotes

Print devices in quotes, for consistency with:

- the existing chain listing with single device:

  type filter hook ingress device "lo" priority filter; policy accept

- the ifname datatype used in sets.

In general, tokens that are user-defined, not coming in the datatype
symbol list, are enclosed in quotes.

Fixes: 3fdc7541fba0 ("src: add multidevice support for netdev chain")
Acked-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
12 files changed:
src/rule.c
tests/shell/features/flowtable_counter.sh
tests/shell/testcases/chains/dumps/0042chain_variable_0.nft
tests/shell/testcases/flowtable/dumps/0001flowtable_0.nft
tests/shell/testcases/flowtable/dumps/0002create_flowtable_0.nft
tests/shell/testcases/flowtable/dumps/0003add_after_flush_0.nft
tests/shell/testcases/flowtable/dumps/0005delete_in_use_1.nft
tests/shell/testcases/flowtable/dumps/0012flowtable_variable_0.nft
tests/shell/testcases/flowtable/dumps/0013addafterdelete_0.nft
tests/shell/testcases/flowtable/dumps/0014addafterdelete_0.nft
tests/shell/testcases/listing/0020flowtable_0
tests/shell/testcases/listing/dumps/0020flowtable_0.nft