summaryrefslogtreecommitdiffstats
path: root/tests/py/arp/arp.t.json.output
blob: 0120025b2e7b10742eac201185db30a12e8021fe (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
136
137
138
139
140
141
142
143
144
145
146
147
148
# arp ptype 0x0800
[
    {
        "match": {
            "left": {
                "payload": {
                    "field": "ptype",
                    "name": "arp"
                }
            },
            "right": "ip"
        }
    }
]

# arp operation {nak, inreply, inrequest, rreply, rrequest, reply, request}
[
    {
        "match": {
            "left": {
                "payload": {
                    "field": "operation",
                    "name": "arp"
                }
            },
            "right": {
                "set": [
                    "request",
                    "reply",
                    "rrequest",
                    "rreply",
                    "inrequest",
                    "inreply",
                    "nak"
                ]
            }
        }
    }
]

# arp operation != {nak, inreply, inrequest, rreply, rrequest, reply, request}
[
    {
        "match": {
            "left": {
                "payload": {
                    "field": "operation",
                    "name": "arp"
                }
            },
            "op": "!=",
            "right": {
                "set": [
                    "request",
                    "reply",
                    "rrequest",
                    "rreply",
                    "inrequest",
                    "inreply",
                    "nak"
                ]
            }
        }
    }
]

# meta iifname "invalid" arp ptype 0x0800 arp htype 1 arp hlen 6 arp plen 4 @nh,192,32 0xc0a88f10 @nh,144,48 set 0x112233445566
[
    {
        "match": {
            "left": {
                "meta": "iifname"
            },
            "right": "invalid"
        }
    },
    {
        "match": {
            "left": {
                "payload": {
                    "field": "htype",
                    "name": "arp"
                }
            },
            "right": 1
        }
    },
    {
        "match": {
            "left": {
                "payload": {
                    "field": "ptype",
                    "name": "arp"
                }
            },
            "right": "ip"
        }
    },
    {
        "match": {
            "left": {
                "payload": {
                    "field": "hlen",
                    "name": "arp"
                }
            },
            "right": 6
        }
    },
    {
        "match": {
            "left": {
                "payload": {
                    "field": "plen",
                    "name": "arp"
                }
            },
            "right": 4
        }
    },
    {
        "match": {
            "left": {
                "payload": {
                    "base": "nh",
                    "len": 32,
                    "name": "raw",
                    "offset": 192
                }
            },
            "right": 3232272144
        }
    },
    {
        "mangle": {
            "left": {
                "payload": {
                    "base": "nh",
                    "len": 48,
                    "name": "raw",
                    "offset": 144
                }
            },
            "right": 18838586676582
        }
    }
]