summaryrefslogtreecommitdiffstats
path: root/tests/py/ip6/map.t.json.output
blob: 9280d55e078874f727713733903719d8435af07c (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": {
            "key": {
                "meta": { "key": "mark" }
            },
            "value": {
                "map": {
                    "key": {
                        "&": [
                            {
                                "payload": {
                                    "field": "saddr",
                                    "protocol": "ip6"
                                }
                            },
                            "::ffff"
                        ]
                    },
                    "data": {
                        "set": [
                            [
                                "::2",
                                42
                            ],
                            [
                                "::ffff",
                                23
                            ]
                        ]
                    }
                }
            }
        }
    }
]