-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathicmp-all-types.pkt
More file actions
66 lines (58 loc) · 2.02 KB
/
icmp-all-types.pkt
File metadata and controls
66 lines (58 loc) · 2.02 KB
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
// Borrowed from https://github.com/google/packetdrill
// Test for handling of incoming ICMP packets.
// This test tests all known ICMP types, and a
// few unknown types.
--tolerance_usecs=100000
// Create a listening TCP socket
0.000 socket(..., SOCK_STREAM, IPPROTO_TCP) = 3
0.000 setsockopt(3, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0
0.000 bind(3, ..., ...) = 0
0.000 listen(3, 1) = 0
// Establish a connection
0.100 < S 0:0(0) win 65535 <mss 1460,sackOK,nop,nop,nop,wscale 7>
0.100 > S. 0:0(0) ack 1 <...>
0.200 < . 1:1(0) ack 1 win 65535
0.200 accept(3, ..., ...) = 4
// Unreachable types
0.300 < icmp unreachable net_unreachable
0.301 < icmp unreachable host_unreachable
0.302 < icmp unreachable protocol_unreachable
0.303 < icmp unreachable port_unreachable
0.304 < icmp unreachable frag_needed mtu 1234
0.305 < icmp unreachable source_route_failed
0.306 < icmp unreachable net_unknown
0.307 < icmp unreachable host_unknown
0.308 < icmp unreachable source_host_isolated
0.309 < icmp unreachable net_prohibited
0.310 < icmp unreachable host_prohibited
0.311 < icmp unreachable net_unreachable_for_tos
0.312 < icmp unreachable host_unreachable_for_tos
0.313 < icmp unreachable packet_filtered
0.314 < icmp unreachable precedence_violation
0.315 < icmp unreachable precedence_cutoff
0.320 < icmp echo_reply
0.321 < icmp source_quench
0.322 < icmp redirect
0.323 < icmp echo_request
0.324 < icmp time_exceeded
0.325 < icmp parameter_problem
0.326 < icmp timestamp_request
0.327 < icmp timestamp_reply
0.328 < icmp information_request
0.329 < icmp information_reply
0.330 < icmp address_mask_request
0.331 < icmp address_mask_reply
// Symbolic types with numeric codes.
0.340 < icmp unreachable code_0
0.341 < icmp unreachable code_1
0.342 < icmp unreachable code_255
// Numeric types with numeric codes
0.345 < icmp type_0 code_0
0.346 < icmp type_1 code_0
0.347 < icmp type_255 code_0
0.350 < . 1:1(0) ack 1 win 65535
// We close the connection
0.400 close(4) = 0
0.400 > F. 1:1(0) ack 1 win 1026
0.410 < F. 1:1(0) ack 2 win 65535
0.410 > . 2:2(0) ack 2