summaryrefslogtreecommitdiffstats
path: root/tests/py/ip6/dup.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/ip6/dup.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/ip6/dup.t.payload')
-rw-r--r--tests/py/ip6/dup.t.payload4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/py/ip6/dup.t.payload b/tests/py/ip6/dup.t.payload
index be507780..30015cc9 100644
--- a/tests/py/ip6/dup.t.payload
+++ b/tests/py/ip6/dup.t.payload
@@ -3,13 +3,13 @@ ip6 test test
[ immediate reg 1 0x0000cdab 0x00000000 0x00000000 0x01000000 ]
[ dup sreg_addr 1 ]
-# dup to abcd::1 device eth0
+# dup to abcd::1 device "eth0"
ip6 test test
[ immediate reg 1 0x0000cdab 0x00000000 0x00000000 0x01000000 ]
[ immediate reg 2 0x00000002 ]
[ dup sreg_addr 1 sreg_dev 2 ]
-# dup to ip6 saddr map { abcd::1 : cafe::cafe } device eth0
+# dup to ip6 saddr map { abcd::1 : cafe::cafe } device "eth0"
__map%d test-ip6 b
__map%d test-ip6 0
element 0000cdab 00000000 00000000 01000000 : 0000feca 00000000 00000000 feca0000 0 [end]