...
1
2
3
4 package ipv4
5
6
7 const (
8 ICMPTypeEchoReply ICMPType = 0
9 ICMPTypeDestinationUnreachable ICMPType = 3
10 ICMPTypeRedirect ICMPType = 5
11 ICMPTypeEcho ICMPType = 8
12 ICMPTypeRouterAdvertisement ICMPType = 9
13 ICMPTypeRouterSolicitation ICMPType = 10
14 ICMPTypeTimeExceeded ICMPType = 11
15 ICMPTypeParameterProblem ICMPType = 12
16 ICMPTypeTimestamp ICMPType = 13
17 ICMPTypeTimestampReply ICMPType = 14
18 ICMPTypePhoturis ICMPType = 40
19 ICMPTypeExtendedEchoRequest ICMPType = 42
20 ICMPTypeExtendedEchoReply ICMPType = 43
21 )
22
23
24 var icmpTypes = map[ICMPType]string{
25 0: "echo reply",
26 3: "destination unreachable",
27 5: "redirect",
28 8: "echo",
29 9: "router advertisement",
30 10: "router solicitation",
31 11: "time exceeded",
32 12: "parameter problem",
33 13: "timestamp",
34 14: "timestamp reply",
35 40: "photuris",
36 42: "extended echo request",
37 43: "extended echo reply",
38 }
39
View as plain text