summaryrefslogtreecommitdiffstats
path: root/tests/py/ip6/map.t.json
diff options
context:
space:
mode:
Diffstat (limited to 'tests/py/ip6/map.t.json')
-rw-r--r--tests/py/ip6/map.t.json38
1 files changed, 38 insertions, 0 deletions
diff --git a/tests/py/ip6/map.t.json b/tests/py/ip6/map.t.json
new file mode 100644
index 00000000..c8c4f712
--- /dev/null
+++ b/tests/py/ip6/map.t.json
@@ -0,0 +1,38 @@
+# mark set ip6 saddr and ::ffff map { ::2 : 0x0000002a, ::ffff : 0x00000017}
+[
+ {
+ "mangle": {
+ "left": {
+ "meta": "mark"
+ },
+ "right": {
+ "map": {
+ "left": {
+ "&": [
+ {
+ "payload": {
+ "field": "saddr",
+ "name": "ip6"
+ }
+ },
+ "::ffff"
+ ]
+ },
+ "right": {
+ "set": [
+ [
+ "::2",
+ "0x0000002a"
+ ],
+ [
+ "::ffff",
+ "0x00000017"
+ ]
+ ]
+ }
+ }
+ }
+ }
+ }
+]
+