|
49 | 49 | { |
50 | 50 | "_description": "The value of the 'prlen' field is incorrect.", |
51 | 51 | "_args": [ |
52 | | - b"\x00\x01\x08\x00\x06\x04\x00\x00\x02\x00\x00\x00\x00\x91\x0a\x00" |
53 | | - b"\x01\x5b\x00\x00\x00\x00\x00\x07\x0a\x00\x01\x07", |
| 52 | + ( |
| 53 | + # ARP (Ethernet/IPv4) |
| 54 | + # Hardware type : 1 (Ethernet) |
| 55 | + # Protocol type : 0x0800 (IPv4) |
| 56 | + # HLEN / PLEN : 6 / 4 |
| 57 | + # Operation : 0 (invalid) |
| 58 | + # Sender MAC : 02:00:00:00:00:91 |
| 59 | + # Sender IP : 10.0.1.91 |
| 60 | + # Target MAC : 00:00:00:00:00:07 |
| 61 | + # Target IP : 10.0.1.7 |
| 62 | + # |
| 63 | + # Summary : Malformed ARP header with undefined operation code 0. |
| 64 | + b"\x00\x01\x08\x00\x06\x04\x00\x00\x02\x00\x00\x00\x00\x91\x0a\x00" |
| 65 | + b"\x01\x5b\x00\x00\x00\x00\x00\x07\x0a\x00\x01\x07" |
| 66 | + ), |
54 | 67 | ], |
55 | 68 | "_kwargs": {}, |
56 | 69 | "_results": { |
|
60 | 73 | { |
61 | 74 | "_description": "The SHA address is unspecified.", |
62 | 75 | "_args": [ |
63 | | - b"\x00\x01\x08\x00\x06\x04\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00" |
64 | | - b"\x00\x00\x00\x00\x00\x00\x00\x00\x0a\x00\x01\x07", |
| 76 | + ( |
| 77 | + # ARP (Ethernet/IPv4) |
| 78 | + # Hardware type : 1 (Ethernet) |
| 79 | + # Protocol type : 0x0800 (IPv4) |
| 80 | + # HLEN / PLEN : 6 / 4 |
| 81 | + # Operation : 1 (Request) |
| 82 | + # Sender MAC : 00:00:00:00:00:00 |
| 83 | + # Sender IP : 0.0.0.0 |
| 84 | + # Target MAC : 00:00:00:00:00:00 |
| 85 | + # Target IP : 10.0.1.7 |
| 86 | + # |
| 87 | + # Summary : ARP Request with unspecified sender MAC address. |
| 88 | + b"\x00\x01\x08\x00\x06\x04\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00" |
| 89 | + b"\x00\x00\x00\x00\x00\x00\x00\x00\x0a\x00\x01\x07" |
| 90 | + ), |
65 | 91 | ], |
66 | 92 | "_kwargs": {}, |
67 | 93 | "_results": { |
|
71 | 97 | { |
72 | 98 | "_description": "The SHA address is multicast.", |
73 | 99 | "_args": [ |
74 | | - b"\x00\x01\x08\x00\x06\x04\x00\x01\x01\x00\x5e\x00\x00\x01\x0a\x00" |
75 | | - b"\x01\x5b\x00\x00\x00\x00\x00\x07\x0a\x00\x01\x07", |
| 100 | + ( |
| 101 | + # ARP (Ethernet/IPv4) |
| 102 | + # Hardware type : 1 (Ethernet) |
| 103 | + # Protocol type : 0x0800 (IPv4) |
| 104 | + # HLEN / PLEN : 6 / 4 |
| 105 | + # Operation : 1 (Request) |
| 106 | + # Sender MAC : 01:00:5e:00:00:01 |
| 107 | + # Sender IP : 10.0.1.91 |
| 108 | + # Target MAC : 00:00:00:00:00:07 |
| 109 | + # Target IP : 10.0.1.7 |
| 110 | + # |
| 111 | + # Summary : ARP Request sent from multicast MAC address. |
| 112 | + b"\x00\x01\x08\x00\x06\x04\x00\x01\x01\x00\x5e\x00\x00\x01\x0a\x00" |
| 113 | + b"\x01\x5b\x00\x00\x00\x00\x00\x07\x0a\x00\x01\x07" |
| 114 | + ), |
76 | 115 | ], |
77 | 116 | "_kwargs": {}, |
78 | 117 | "_results": { |
|
82 | 121 | { |
83 | 122 | "_description": "The SHA address is broadcast.", |
84 | 123 | "_args": [ |
85 | | - b"\x00\x01\x08\x00\x06\x04\x00\x01\xff\xff\xff\xff\xff\xff\x0a\x00" |
86 | | - b"\x01\x5b\x00\x00\x00\x00\x00\x00\x0a\x00\x01\x07", |
| 124 | + ( |
| 125 | + # ARP (Ethernet/IPv4) |
| 126 | + # Hardware type : 1 (Ethernet) |
| 127 | + # Protocol type : 0x0800 (IPv4) |
| 128 | + # HLEN / PLEN : 6 / 4 |
| 129 | + # Operation : 1 (Request) |
| 130 | + # Sender MAC : ff:ff:ff:ff:ff:ff |
| 131 | + # Sender IP : 10.0.1.91 |
| 132 | + # Target MAC : 00:00:00:00:00:00 |
| 133 | + # Target IP : 10.0.1.7 |
| 134 | + # |
| 135 | + # Summary : ARP Request claiming broadcast MAC as sender. |
| 136 | + b"\x00\x01\x08\x00\x06\x04\x00\x01\xff\xff\xff\xff\xff\xff\x0a\x00" |
| 137 | + b"\x01\x5b\x00\x00\x00\x00\x00\x00\x0a\x00\x01\x07" |
| 138 | + ), |
87 | 139 | ], |
88 | 140 | "_kwargs": {}, |
89 | 141 | "_results": { |
|
93 | 145 | { |
94 | 146 | "_description": "The SPA field is unspecified in ARP Reply.", |
95 | 147 | "_args": [ |
96 | | - b"\x00\x01\x08\x00\x06\x04\x00\x02\x02\x00\x00\x00\x00\x91\x00\x00" |
97 | | - b"\x00\x00\x02\x00\x00\x00\x00\x07\x0a\x00\x01\x07", |
| 148 | + ( |
| 149 | + # ARP (Ethernet/IPv4) |
| 150 | + # Hardware type : 1 (Ethernet) |
| 151 | + # Protocol type : 0x0800 (IPv4) |
| 152 | + # HLEN / PLEN : 6 / 4 |
| 153 | + # Operation : 2 (Reply) |
| 154 | + # Sender MAC : 02:00:00:00:00:91 |
| 155 | + # Sender IP : 0.0.0.0 |
| 156 | + # Target MAC : 02:00:00:00:00:07 |
| 157 | + # Target IP : 10.0.1.7 |
| 158 | + # |
| 159 | + # Summary : ARP Reply advertising unspecified sender IPv4 address. |
| 160 | + b"\x00\x01\x08\x00\x06\x04\x00\x02\x02\x00\x00\x00\x00\x91\x00\x00" |
| 161 | + b"\x00\x00\x02\x00\x00\x00\x00\x07\x0a\x00\x01\x07" |
| 162 | + ), |
98 | 163 | ], |
99 | 164 | "_kwargs": {}, |
100 | 165 | "_results": { |
|
105 | 170 | { |
106 | 171 | "_description": "The SPA address is multicast.", |
107 | 172 | "_args": [ |
108 | | - b"\x00\x01\x08\x00\x06\x04\x00\x02\x02\x00\x00\x00\x00\x91\xe0\x00" |
109 | | - b"\x00\x01\x02\x00\x00\x00\x00\x07\x0a\x00\x01\x07", |
| 173 | + ( |
| 174 | + # ARP (Ethernet/IPv4) |
| 175 | + # Hardware type : 1 (Ethernet) |
| 176 | + # Protocol type : 0x0800 (IPv4) |
| 177 | + # HLEN / PLEN : 6 / 4 |
| 178 | + # Operation : 2 (Reply) |
| 179 | + # Sender MAC : 02:00:00:00:00:91 |
| 180 | + # Sender IP : 224.0.0.1 |
| 181 | + # Target MAC : 02:00:00:00:00:07 |
| 182 | + # Target IP : 10.0.1.7 |
| 183 | + # |
| 184 | + # Summary : ARP Reply advertising multicast sender IPv4 address. |
| 185 | + b"\x00\x01\x08\x00\x06\x04\x00\x02\x02\x00\x00\x00\x00\x91\xe0\x00" |
| 186 | + b"\x00\x01\x02\x00\x00\x00\x00\x07\x0a\x00\x01\x07" |
| 187 | + ), |
110 | 188 | ], |
111 | 189 | "_kwargs": {}, |
112 | 190 | "_results": {"error_message": "The 'spa' field value 224.0.0.1 must not be a " "multicast IPv4 address."}, |
113 | 191 | }, |
114 | 192 | { |
115 | 193 | "_description": "The SPA address is broadcast.", |
116 | 194 | "_args": [ |
117 | | - b"\x00\x01\x08\x00\x06\x04\x00\x02\x02\x00\x00\x00\x00\x91\xff\xff" |
118 | | - b"\xff\xff\x02\x00\x00\x00\x00\x07\x0a\x00\x01\x07", |
| 195 | + ( |
| 196 | + # ARP (Ethernet/IPv4) |
| 197 | + # Hardware type : 1 (Ethernet) |
| 198 | + # Protocol type : 0x0800 (IPv4) |
| 199 | + # HLEN / PLEN : 6 / 4 |
| 200 | + # Operation : 2 (Reply) |
| 201 | + # Sender MAC : 02:00:00:00:00:91 |
| 202 | + # Sender IP : 255.255.255.255 |
| 203 | + # Target MAC : 02:00:00:00:00:07 |
| 204 | + # Target IP : 10.0.1.7 |
| 205 | + # |
| 206 | + # Summary : ARP Reply claiming limited broadcast sender IP address. |
| 207 | + b"\x00\x01\x08\x00\x06\x04\x00\x02\x02\x00\x00\x00\x00\x91\xff\xff" |
| 208 | + b"\xff\xff\x02\x00\x00\x00\x00\x07\x0a\x00\x01\x07" |
| 209 | + ), |
119 | 210 | ], |
120 | 211 | "_kwargs": {}, |
121 | 212 | "_results": { |
|
126 | 217 | { |
127 | 218 | "_description": "The SHA address doesn't match the Ethernet source address.", |
128 | 219 | "_args": [ |
129 | | - b"\x00\x01\x08\x00\x06\x04\x00\x02\x02\x00\x00\x00\x00\x91\x0a\x00" |
130 | | - b"\x01\x5b\x02\x00\x00\x00\x00\x07\x0a\x00\x01\x07", |
| 220 | + ( |
| 221 | + # ARP (Ethernet/IPv4) |
| 222 | + # Hardware type : 1 (Ethernet) |
| 223 | + # Protocol type : 0x0800 (IPv4) |
| 224 | + # HLEN / PLEN : 6 / 4 |
| 225 | + # Operation : 2 (Reply) |
| 226 | + # Sender MAC : 02:00:00:00:00:91 |
| 227 | + # Sender IP : 10.0.1.91 |
| 228 | + # Target MAC : 02:00:00:00:00:07 |
| 229 | + # Target IP : 10.0.1.7 |
| 230 | + # |
| 231 | + # Summary : ARP Reply with sender MAC differing from Ethernet frame source. |
| 232 | + b"\x00\x01\x08\x00\x06\x04\x00\x02\x02\x00\x00\x00\x00\x91\x0a\x00" |
| 233 | + b"\x01\x5b\x02\x00\x00\x00\x00\x07\x0a\x00\x01\x07" |
| 234 | + ), |
131 | 235 | ], |
132 | 236 | "_kwargs": {}, |
133 | 237 | "_results": { |
|
0 commit comments