summaryrefslogtreecommitdiffstats
path: root/tests/py/any/fwd.t.payload
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2016-08-15 13:14:18 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2016-08-18 03:14:08 +0200
commit788c986343bc24bd0272e8aa409121ffe51f1ef3 (patch)
tree42cf0210e9fce93e0a5a951f0012e891fa750b05 /tests/py/any/fwd.t.payload
parentddb1f1f8cdca2e0f70254a5adcc0291907503a36 (diff)
src: quote user-defined strings when used from rule selectors
The following selectors display strings using quotes: * meta iifname * meta oifname * meta ibriport * meta obriport However, the following do not: * meta oif * meta iif * meta skuid * meta skgid * meta iifgroup * meta oifgroup * meta rtclassid * ct label Given they refer to user-defined values, neither keywords nor internal built-in known values, let's quote the output of this. This patch modifies symbolic_constant_print() so we can signal this to indicate if the string needs to be quoted. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests/py/any/fwd.t.payload')
-rw-r--r--tests/py/any/fwd.t.payload4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/py/any/fwd.t.payload b/tests/py/any/fwd.t.payload
index 0402b7a9..696b55ef 100644
--- a/tests/py/any/fwd.t.payload
+++ b/tests/py/any/fwd.t.payload
@@ -1,9 +1,9 @@
-# fwd to lo
+# fwd to "lo"
netdev test-netdev ingress
[ immediate reg 1 0x00000001 ]
[ fwd sreg_dev 1 ]
-# fwd to mark map { 0x00000001 : lo, 0x00000002 : lo}
+# fwd to mark map { 0x00000001 : "lo", 0x00000002 : "lo"}
__map%d test-netdev b
__map%d test-netdev 0
element 00000001 : 00000001 0 [end] element 00000002 : 00000001 0 [end]