summaryrefslogtreecommitdiffstats
path: root/tests/py/ip6/icmpv6.t.json.output
blob: 17032a03d80bd66c825566480e688457ed1ce7d4 (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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
# icmpv6 type mld-listener-reduction accept
[
    {
        "match": {
            "left": {
                "payload": {
                    "field": "type",
                    "protocol": "icmpv6"
                }
            },
	    "op": "==",
            "right": "mld-listener-done"
        }
    },
    {
        "accept": null
    }
]

# icmpv6 type {router-renumbering, mld-listener-done, time-exceeded, nd-router-solicit} accept
[
    {
        "match": {
            "left": {
                "payload": {
                    "field": "type",
                    "protocol": "icmpv6"
                }
            },
	    "op": "==",
            "right": {
                "set": [
                    "time-exceeded",
                    "mld-listener-done",
                    "nd-router-solicit",
                    "router-renumbering"
                ]
            }
        }
    },
    {
        "accept": null
    }
]

# icmpv6 type {mld-listener-query, time-exceeded, nd-router-advert} accept
[
    {
        "match": {
            "left": {
                "payload": {
                    "field": "type",
                    "protocol": "icmpv6"
                }
            },
	    "op": "==",
            "right": {
                "set": [
                    "time-exceeded",
                    "mld-listener-query",
                    "nd-router-advert"
                ]
            }
        }
    },
    {
        "accept": null
    }
]

# icmpv6 type != {mld-listener-query, time-exceeded, nd-router-advert} accept
[
    {
        "match": {
            "left": {
                "payload": {
                    "field": "type",
                    "protocol": "icmpv6"
                }
            },
            "op": "!=",
            "right": {
                "set": [
                    "time-exceeded",
                    "mld-listener-query",
                    "nd-router-advert"
                ]
            }
        }
    },
    {
        "accept": null
    }
]

# icmpv6 code 4
[
    {
        "match": {
            "left": {
                "payload": {
                    "field": "code",
                    "protocol": "icmpv6"
                }
            },
	    "op": "==",
            "right": "port-unreachable"
        }
    }
]

# icmpv6 code {5, 6, 7} accept
[
    {
        "match": {
            "left": {
                "payload": {
                    "field": "code",
                    "protocol": "icmpv6"
                }
            },
	    "op": "==",
            "right": {
                "set": [
                    "policy-fail",
                    "reject-route",
                    7
                ]
            }
        }
    },
    {
        "accept": null
    }
]