...
1
2
3
4 package ipv6
5
6
7 const (
8 ICMPTypeDestinationUnreachable ICMPType = 1
9 ICMPTypePacketTooBig ICMPType = 2
10 ICMPTypeTimeExceeded ICMPType = 3
11 ICMPTypeParameterProblem ICMPType = 4
12 ICMPTypeEchoRequest ICMPType = 128
13 ICMPTypeEchoReply ICMPType = 129
14 ICMPTypeMulticastListenerQuery ICMPType = 130
15 ICMPTypeMulticastListenerReport ICMPType = 131
16 ICMPTypeMulticastListenerDone ICMPType = 132
17 ICMPTypeRouterSolicitation ICMPType = 133
18 ICMPTypeRouterAdvertisement ICMPType = 134
19 ICMPTypeNeighborSolicitation ICMPType = 135
20 ICMPTypeNeighborAdvertisement ICMPType = 136
21 ICMPTypeRedirect ICMPType = 137
22 ICMPTypeRouterRenumbering ICMPType = 138
23 ICMPTypeNodeInformationQuery ICMPType = 139
24 ICMPTypeNodeInformationResponse ICMPType = 140
25 ICMPTypeInverseNeighborDiscoverySolicitation ICMPType = 141
26 ICMPTypeInverseNeighborDiscoveryAdvertisement ICMPType = 142
27 ICMPTypeVersion2MulticastListenerReport ICMPType = 143
28 ICMPTypeHomeAgentAddressDiscoveryRequest ICMPType = 144
29 ICMPTypeHomeAgentAddressDiscoveryReply ICMPType = 145
30 ICMPTypeMobilePrefixSolicitation ICMPType = 146
31 ICMPTypeMobilePrefixAdvertisement ICMPType = 147
32 ICMPTypeCertificationPathSolicitation ICMPType = 148
33 ICMPTypeCertificationPathAdvertisement ICMPType = 149
34 ICMPTypeMulticastRouterAdvertisement ICMPType = 151
35 ICMPTypeMulticastRouterSolicitation ICMPType = 152
36 ICMPTypeMulticastRouterTermination ICMPType = 153
37 ICMPTypeFMIPv6 ICMPType = 154
38 ICMPTypeRPLControl ICMPType = 155
39 ICMPTypeILNPv6LocatorUpdate ICMPType = 156
40 ICMPTypeDuplicateAddressRequest ICMPType = 157
41 ICMPTypeDuplicateAddressConfirmation ICMPType = 158
42 ICMPTypeMPLControl ICMPType = 159
43 ICMPTypeExtendedEchoRequest ICMPType = 160
44 ICMPTypeExtendedEchoReply ICMPType = 161
45 )
46
47
48 var icmpTypes = map[ICMPType]string{
49 1: "destination unreachable",
50 2: "packet too big",
51 3: "time exceeded",
52 4: "parameter problem",
53 128: "echo request",
54 129: "echo reply",
55 130: "multicast listener query",
56 131: "multicast listener report",
57 132: "multicast listener done",
58 133: "router solicitation",
59 134: "router advertisement",
60 135: "neighbor solicitation",
61 136: "neighbor advertisement",
62 137: "redirect message",
63 138: "router renumbering",
64 139: "icmp node information query",
65 140: "icmp node information response",
66 141: "inverse neighbor discovery solicitation message",
67 142: "inverse neighbor discovery advertisement message",
68 143: "version 2 multicast listener report",
69 144: "home agent address discovery request message",
70 145: "home agent address discovery reply message",
71 146: "mobile prefix solicitation",
72 147: "mobile prefix advertisement",
73 148: "certification path solicitation message",
74 149: "certification path advertisement message",
75 151: "multicast router advertisement",
76 152: "multicast router solicitation",
77 153: "multicast router termination",
78 154: "fmipv6 messages",
79 155: "rpl control message",
80 156: "ilnpv6 locator update message",
81 157: "duplicate address request",
82 158: "duplicate address confirmation",
83 159: "mpl control message",
84 160: "extended echo request",
85 161: "extended echo reply",
86 }
87
View as plain text