summaryrefslogtreecommitdiffstats
path: root/tests/py/ip6/map.t.json
blob: 2ddb3080d5844c891785542554273480ca598292 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# mark set ip6 saddr and ::ffff map { ::2 : 0x0000002a, ::ffff : 0x00000017}
[
    {
        "mangle": {
            "left": {
                "meta": { "key": "mark" }
            },
            "right": {
                "map": {
                    "key": {
                        "&": [
                            {
                                "payload": {
                                    "field": "saddr",
                                    "protocol": "ip6"
                                }
                            },
                            "::ffff"
                        ]
                    },
                    "data": {
                        "set": [
                            [
                                "::2",
                                "0x0000002a"
                            ],
                            [
                                "::ffff",
                                "0x00000017"
                            ]
                        ]
                    }
                }
            }
        }
    }
]