line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# |
2
|
|
|
|
|
|
|
# $Id: Consts.pm 2002 2015-02-15 16:50:35Z gomor $ |
3
|
|
|
|
|
|
|
# |
4
|
|
|
|
|
|
|
package Net::Packet::Consts; |
5
|
29
|
|
|
29
|
|
143
|
use strict; |
|
29
|
|
|
|
|
40
|
|
|
29
|
|
|
|
|
1052
|
|
6
|
29
|
|
|
29
|
|
129
|
use warnings; |
|
29
|
|
|
|
|
40
|
|
|
29
|
|
|
|
|
12882
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
require Exporter; |
9
|
|
|
|
|
|
|
our @ISA = qw(Exporter); |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
our %EXPORT_TAGS = ( |
12
|
|
|
|
|
|
|
desc => [qw( |
13
|
|
|
|
|
|
|
NP_DESC_IPPROTO_IP |
14
|
|
|
|
|
|
|
NP_DESC_IPPROTO_ICMPv4 |
15
|
|
|
|
|
|
|
NP_DESC_IPPROTO_TCP |
16
|
|
|
|
|
|
|
NP_DESC_IPPROTO_UDP |
17
|
|
|
|
|
|
|
NP_DESC_IPPROTO_IPv6 |
18
|
|
|
|
|
|
|
NP_DESC_IPPROTO_RAW |
19
|
|
|
|
|
|
|
NP_DESC_IP_HDRINCL |
20
|
|
|
|
|
|
|
NP_DESC_L2 |
21
|
|
|
|
|
|
|
NP_DESC_L3 |
22
|
|
|
|
|
|
|
NP_DESC_L4 |
23
|
|
|
|
|
|
|
)], |
24
|
|
|
|
|
|
|
dump => [qw( |
25
|
|
|
|
|
|
|
NP_DUMP_LINK_NULL |
26
|
|
|
|
|
|
|
NP_DUMP_LINK_EN10MB |
27
|
|
|
|
|
|
|
NP_DUMP_LINK_RAW |
28
|
|
|
|
|
|
|
NP_DUMP_LINK_SLL |
29
|
|
|
|
|
|
|
NP_DUMP_LINK_PPP |
30
|
|
|
|
|
|
|
NP_DUMP_MODE_OFFLINE |
31
|
|
|
|
|
|
|
NP_DUMP_MODE_ONLINE |
32
|
|
|
|
|
|
|
NP_DUMP_MODE_WRITER |
33
|
|
|
|
|
|
|
)], |
34
|
|
|
|
|
|
|
layer => [qw( |
35
|
|
|
|
|
|
|
NP_LAYER |
36
|
|
|
|
|
|
|
NP_LAYER_ETH |
37
|
|
|
|
|
|
|
NP_LAYER_NULL |
38
|
|
|
|
|
|
|
NP_LAYER_RAW |
39
|
|
|
|
|
|
|
NP_LAYER_SLL |
40
|
|
|
|
|
|
|
NP_LAYER_ARP |
41
|
|
|
|
|
|
|
NP_LAYER_IPv4 |
42
|
|
|
|
|
|
|
NP_LAYER_IPv6 |
43
|
|
|
|
|
|
|
NP_LAYER_VLAN |
44
|
|
|
|
|
|
|
NP_LAYER_TCP |
45
|
|
|
|
|
|
|
NP_LAYER_UDP |
46
|
|
|
|
|
|
|
NP_LAYER_ICMPv4 |
47
|
|
|
|
|
|
|
NP_LAYER_7 |
48
|
|
|
|
|
|
|
NP_LAYER_NONE |
49
|
|
|
|
|
|
|
NP_LAYER_UNKNOWN |
50
|
|
|
|
|
|
|
NP_LAYER_PPPoE |
51
|
|
|
|
|
|
|
NP_LAYER_PPP |
52
|
|
|
|
|
|
|
NP_LAYER_LLC |
53
|
|
|
|
|
|
|
NP_LAYER_PPPLCP |
54
|
|
|
|
|
|
|
NP_LAYER_CDP |
55
|
|
|
|
|
|
|
NP_LAYER_STP |
56
|
|
|
|
|
|
|
NP_LAYER_OSPF |
57
|
|
|
|
|
|
|
NP_LAYER_IGMPv4 |
58
|
|
|
|
|
|
|
NP_LAYER_N_2 |
59
|
|
|
|
|
|
|
NP_LAYER_N_3 |
60
|
|
|
|
|
|
|
NP_LAYER_N_4 |
61
|
|
|
|
|
|
|
NP_LAYER_N_7 |
62
|
|
|
|
|
|
|
NP_LAYER_N_UNKNOWN |
63
|
|
|
|
|
|
|
)], |
64
|
|
|
|
|
|
|
eth => [qw( |
65
|
|
|
|
|
|
|
NP_ETH_HDR_LEN |
66
|
|
|
|
|
|
|
NP_ETH_ADDR_BROADCAST |
67
|
|
|
|
|
|
|
NP_ETH_TYPE_IPv4 |
68
|
|
|
|
|
|
|
NP_ETH_TYPE_IPv6 |
69
|
|
|
|
|
|
|
NP_ETH_TYPE_VLAN |
70
|
|
|
|
|
|
|
NP_ETH_TYPE_ARP |
71
|
|
|
|
|
|
|
NP_ETH_TYPE_PPPoE |
72
|
|
|
|
|
|
|
)], |
73
|
|
|
|
|
|
|
null => [qw( |
74
|
|
|
|
|
|
|
NP_NULL_HDR_LEN |
75
|
|
|
|
|
|
|
NP_NULL_TYPE_IPv4 |
76
|
|
|
|
|
|
|
NP_NULL_TYPE_IPv6 |
77
|
|
|
|
|
|
|
)], |
78
|
|
|
|
|
|
|
sll => [qw( |
79
|
|
|
|
|
|
|
NP_SLL_HDR_LEN |
80
|
|
|
|
|
|
|
NP_SLL_PACKET_TYPE_SENT_BY_US |
81
|
|
|
|
|
|
|
NP_SLL_PACKET_TYPE_UNICAST_TO_US |
82
|
|
|
|
|
|
|
NP_SLL_ADDRESS_TYPE_512 |
83
|
|
|
|
|
|
|
NP_SLL_PROTOCOL_IPv4 |
84
|
|
|
|
|
|
|
NP_SLL_PROTOCOL_IPv6 |
85
|
|
|
|
|
|
|
NP_SLL_PROTOCOL_ARP |
86
|
|
|
|
|
|
|
NP_SLL_PROTOCOL_VLAN |
87
|
|
|
|
|
|
|
)], |
88
|
|
|
|
|
|
|
vlan => [qw( |
89
|
|
|
|
|
|
|
NP_VLAN_HDR_LEN |
90
|
|
|
|
|
|
|
NP_VLAN_TYPE_ARP |
91
|
|
|
|
|
|
|
NP_VLAN_TYPE_IPv4 |
92
|
|
|
|
|
|
|
NP_VLAN_TYPE_IPv6 |
93
|
|
|
|
|
|
|
NP_VLAN_TYPE_VLAN |
94
|
|
|
|
|
|
|
)], |
95
|
|
|
|
|
|
|
arp => [qw( |
96
|
|
|
|
|
|
|
NP_ARP_HDR_LEN |
97
|
|
|
|
|
|
|
NP_ARP_HTYPE_ETH |
98
|
|
|
|
|
|
|
NP_ARP_PTYPE_IPv4 |
99
|
|
|
|
|
|
|
NP_ARP_HSIZE_ETH |
100
|
|
|
|
|
|
|
NP_ARP_PSIZE_IPv4 |
101
|
|
|
|
|
|
|
NP_ARP_OPCODE_REQUEST |
102
|
|
|
|
|
|
|
NP_ARP_OPCODE_REPLY |
103
|
|
|
|
|
|
|
NP_ARP_ADDR_BROADCAST |
104
|
|
|
|
|
|
|
)], |
105
|
|
|
|
|
|
|
ipv4 => [qw( |
106
|
|
|
|
|
|
|
NP_IPv4_HDR_LEN |
107
|
|
|
|
|
|
|
NP_IPv4_V4 |
108
|
|
|
|
|
|
|
NP_IPv4_PROTOCOL_TCP |
109
|
|
|
|
|
|
|
NP_IPv4_PROTOCOL_UDP |
110
|
|
|
|
|
|
|
NP_IPv4_PROTOCOL_ICMPv4 |
111
|
|
|
|
|
|
|
NP_IPv4_PROTOCOL_IPv6 |
112
|
|
|
|
|
|
|
NP_IPv4_PROTOCOL_OSPF |
113
|
|
|
|
|
|
|
NP_IPv4_PROTOCOL_IGMPv4 |
114
|
|
|
|
|
|
|
NP_IPv4_MORE_FRAGMENT |
115
|
|
|
|
|
|
|
NP_IPv4_DONT_FRAGMENT |
116
|
|
|
|
|
|
|
NP_IPv4_RESERVED_FRAGMENT |
117
|
|
|
|
|
|
|
)], |
118
|
|
|
|
|
|
|
ipv6 => [qw( |
119
|
|
|
|
|
|
|
NP_IPv6_HDR_LEN |
120
|
|
|
|
|
|
|
NP_IPv6_V6 |
121
|
|
|
|
|
|
|
NP_IPv6_PROTOCOL_TCP |
122
|
|
|
|
|
|
|
NP_IPv6_PROTOCOL_UDP |
123
|
|
|
|
|
|
|
)], |
124
|
|
|
|
|
|
|
pppoe => [qw( |
125
|
|
|
|
|
|
|
NP_PPPoE_HDR_LEN |
126
|
|
|
|
|
|
|
NP_PPPoE_PPP_PROTOCOL_IPv4 |
127
|
|
|
|
|
|
|
NP_PPPoE_PPP_PROTOCOL_PPPLCP |
128
|
|
|
|
|
|
|
)], |
129
|
|
|
|
|
|
|
ppp => [qw( |
130
|
|
|
|
|
|
|
NP_PPP_HDR_LEN |
131
|
|
|
|
|
|
|
NP_PPP_PROTOCOL_IPv4 |
132
|
|
|
|
|
|
|
NP_PPP_PROTOCOL_PPPLCP |
133
|
|
|
|
|
|
|
)], |
134
|
|
|
|
|
|
|
llc => [qw( |
135
|
|
|
|
|
|
|
NP_LLC_HDR_LEN |
136
|
|
|
|
|
|
|
NP_LLC_OUI_CISCO |
137
|
|
|
|
|
|
|
NP_LLC_PID_CDP |
138
|
|
|
|
|
|
|
NP_LLC_PID_STP |
139
|
|
|
|
|
|
|
NP_LLC_DSAP_SNAP |
140
|
|
|
|
|
|
|
NP_LLC_SSAP_SNAP |
141
|
|
|
|
|
|
|
)], |
142
|
|
|
|
|
|
|
ppplcp => [qw( |
143
|
|
|
|
|
|
|
NP_PPPLCP_HDR_LEN |
144
|
|
|
|
|
|
|
NP_PPPLCP_CODE_ECHO_REQUEST |
145
|
|
|
|
|
|
|
NP_PPPLCP_CODE_ECHO_REPLY |
146
|
|
|
|
|
|
|
)], |
147
|
|
|
|
|
|
|
cdp => [qw( |
148
|
|
|
|
|
|
|
NP_CDP_HDR_LEN |
149
|
|
|
|
|
|
|
NP_CDP_TYPE_DEVICE_ID |
150
|
|
|
|
|
|
|
NP_CDP_TYPE_ADDRESSES |
151
|
|
|
|
|
|
|
NP_CDP_TYPE_PORT_ID |
152
|
|
|
|
|
|
|
NP_CDP_TYPE_CAPABILITIES |
153
|
|
|
|
|
|
|
NP_CDP_TYPE_SOFTWARE_VERSION |
154
|
|
|
|
|
|
|
NP_CDP_TYPE_PLATFORM |
155
|
|
|
|
|
|
|
NP_CDP_TYPE_UNKNOWN_0007 |
156
|
|
|
|
|
|
|
NP_CDP_TYPE_UNKNOWN_0008 |
157
|
|
|
|
|
|
|
NP_CDP_TYPE_VTP_MANAGEMENT_DOMAIN |
158
|
|
|
|
|
|
|
NP_CDP_TYPE_UNKNOWN_000a |
159
|
|
|
|
|
|
|
NP_CDP_TYPE_DUPLEX |
160
|
|
|
|
|
|
|
NP_CDP_TYPE_UNKNOWN_000c |
161
|
|
|
|
|
|
|
NP_CDP_TYPE_UNKNOWN_000d |
162
|
|
|
|
|
|
|
NP_CDP_TYPE_VOIP_VLAN_REPLY |
163
|
|
|
|
|
|
|
NP_CDP_TYPE_UNKNOWN_000f |
164
|
|
|
|
|
|
|
NP_CDP_TYPE_UNKNOWN_0010 |
165
|
|
|
|
|
|
|
NP_CDP_TYPE_UNKNOWN_0011 |
166
|
|
|
|
|
|
|
NP_CDP_TYPE_TRUST_BITMAP |
167
|
|
|
|
|
|
|
NP_CDP_TYPE_UNTRUSTED_PORT_COS |
168
|
|
|
|
|
|
|
NP_CDP_TYPE_SYSTEM_NAME |
169
|
|
|
|
|
|
|
NP_CDP_TYPE_SYSTEM_OBJECT_ID |
170
|
|
|
|
|
|
|
NP_CDP_TYPE_UNKNOWN_0016 |
171
|
|
|
|
|
|
|
NP_CDP_TYPE_LOCATION |
172
|
|
|
|
|
|
|
NP_CDP_ADDRESS_PROTOCOL_TYPE_NLPID |
173
|
|
|
|
|
|
|
NP_CDP_ADDRESS_PROTOCOL_LENGTH_NLPID |
174
|
|
|
|
|
|
|
NP_CDP_ADDRESS_PROTOCOL_IP |
175
|
|
|
|
|
|
|
NP_CDP_ADDRESS_ADDRESS_LENGTH_IP |
176
|
|
|
|
|
|
|
)], |
177
|
|
|
|
|
|
|
stp => [qw( |
178
|
|
|
|
|
|
|
NP_STP_HDR_LEN |
179
|
|
|
|
|
|
|
NP_STP_PROTOCOL_IDENTIFIER_STP |
180
|
|
|
|
|
|
|
)], |
181
|
|
|
|
|
|
|
ospf => [qw( |
182
|
|
|
|
|
|
|
NP_OSPF_HDR_LEN |
183
|
|
|
|
|
|
|
NP_OSPF_AUTH_TYPE_NULL |
184
|
|
|
|
|
|
|
)], |
185
|
|
|
|
|
|
|
igmpv4 => [qw( |
186
|
|
|
|
|
|
|
NP_IGMPv4_HDR_LEN |
187
|
|
|
|
|
|
|
NP_IGMPv4_v1_TYPE_QUERY |
188
|
|
|
|
|
|
|
NP_IGMPv4_v1_TYPE_REPORT |
189
|
|
|
|
|
|
|
NP_IGMPv4_v2_TYPE_QUERY |
190
|
|
|
|
|
|
|
NP_IGMPv4_v2_TYPE_QUERY_v1 |
191
|
|
|
|
|
|
|
NP_IGMPv4_v2_TYPE_REPORT |
192
|
|
|
|
|
|
|
NP_IGMPv4_v2_TYPE_LEAVE_GROUP |
193
|
|
|
|
|
|
|
NP_IGMPv4_GROUP_ADDRESS_NO_HOSTS |
194
|
|
|
|
|
|
|
NP_IGMPv4_GROUP_ADDRESS_ALL_HOSTS |
195
|
|
|
|
|
|
|
NP_IGMPv4_GROUP_ADDRESS_ALL_ROUTERS |
196
|
|
|
|
|
|
|
)], |
197
|
|
|
|
|
|
|
tcp => [qw( |
198
|
|
|
|
|
|
|
NP_TCP_HDR_LEN |
199
|
|
|
|
|
|
|
NP_TCP_FLAG_FIN |
200
|
|
|
|
|
|
|
NP_TCP_FLAG_SYN |
201
|
|
|
|
|
|
|
NP_TCP_FLAG_RST |
202
|
|
|
|
|
|
|
NP_TCP_FLAG_PSH |
203
|
|
|
|
|
|
|
NP_TCP_FLAG_ACK |
204
|
|
|
|
|
|
|
NP_TCP_FLAG_URG |
205
|
|
|
|
|
|
|
NP_TCP_FLAG_ECE |
206
|
|
|
|
|
|
|
NP_TCP_FLAG_CWR |
207
|
|
|
|
|
|
|
)], |
208
|
|
|
|
|
|
|
udp => [qw( |
209
|
|
|
|
|
|
|
NP_UDP_HDR_LEN |
210
|
|
|
|
|
|
|
)], |
211
|
|
|
|
|
|
|
icmpv4 => [qw( |
212
|
|
|
|
|
|
|
NP_ICMPv4_HDR_LEN |
213
|
|
|
|
|
|
|
NP_ICMPv4_CODE_ZERO |
214
|
|
|
|
|
|
|
NP_ICMPv4_TYPE_DESTINATION_UNREACHABLE |
215
|
|
|
|
|
|
|
NP_ICMPv4_CODE_NETWORK |
216
|
|
|
|
|
|
|
NP_ICMPv4_CODE_HOST |
217
|
|
|
|
|
|
|
NP_ICMPv4_CODE_PROTOCOL |
218
|
|
|
|
|
|
|
NP_ICMPv4_CODE_PORT |
219
|
|
|
|
|
|
|
NP_ICMPv4_CODE_FRAGMENTATION_NEEDED |
220
|
|
|
|
|
|
|
NP_ICMPv4_CODE_SOURCE_ROUTE_FAILED |
221
|
|
|
|
|
|
|
NP_ICMPv4_TYPE_REDIRECT |
222
|
|
|
|
|
|
|
NP_ICMPv4_CODE_FOR_NETWORK |
223
|
|
|
|
|
|
|
NP_ICMPv4_CODE_FOR_HOST |
224
|
|
|
|
|
|
|
NP_ICMPv4_CODE_FOR_TOS_AND_NETWORK |
225
|
|
|
|
|
|
|
NP_ICMPv4_CODE_FOR_TOS_AND_HOST |
226
|
|
|
|
|
|
|
NP_ICMPv4_TYPE_TIME_EXCEEDED |
227
|
|
|
|
|
|
|
NP_ICMPv4_CODE_TTL_IN_TRANSIT |
228
|
|
|
|
|
|
|
NP_ICMPv4_CODE_FRAGMENT_REASSEMBLY |
229
|
|
|
|
|
|
|
NP_ICMPv4_TYPE_ECHO_REQUEST |
230
|
|
|
|
|
|
|
NP_ICMPv4_TYPE_ECHO_REPLY |
231
|
|
|
|
|
|
|
NP_ICMPv4_TYPE_TIMESTAMP_REQUEST |
232
|
|
|
|
|
|
|
NP_ICMPv4_TYPE_TIMESTAMP_REPLY |
233
|
|
|
|
|
|
|
NP_ICMPv4_TYPE_INFORMATION_REQUEST |
234
|
|
|
|
|
|
|
NP_ICMPv4_TYPE_INFORMATION_REPLY |
235
|
|
|
|
|
|
|
NP_ICMPv4_TYPE_ADDRESS_MASK_REQUEST |
236
|
|
|
|
|
|
|
NP_ICMPv4_TYPE_ADDRESS_MASK_REPLY |
237
|
|
|
|
|
|
|
)], |
238
|
|
|
|
|
|
|
); |
239
|
|
|
|
|
|
|
|
240
|
|
|
|
|
|
|
our @EXPORT_OK = ( |
241
|
|
|
|
|
|
|
@{$EXPORT_TAGS{desc}}, |
242
|
|
|
|
|
|
|
@{$EXPORT_TAGS{dump}}, |
243
|
|
|
|
|
|
|
@{$EXPORT_TAGS{layer}}, |
244
|
|
|
|
|
|
|
@{$EXPORT_TAGS{eth}}, |
245
|
|
|
|
|
|
|
@{$EXPORT_TAGS{ipv4}}, |
246
|
|
|
|
|
|
|
@{$EXPORT_TAGS{ipv6}}, |
247
|
|
|
|
|
|
|
@{$EXPORT_TAGS{null}}, |
248
|
|
|
|
|
|
|
@{$EXPORT_TAGS{sll}}, |
249
|
|
|
|
|
|
|
@{$EXPORT_TAGS{vlan}}, |
250
|
|
|
|
|
|
|
@{$EXPORT_TAGS{arp}}, |
251
|
|
|
|
|
|
|
@{$EXPORT_TAGS{tcp}}, |
252
|
|
|
|
|
|
|
@{$EXPORT_TAGS{udp}}, |
253
|
|
|
|
|
|
|
@{$EXPORT_TAGS{icmpv4}}, |
254
|
|
|
|
|
|
|
@{$EXPORT_TAGS{pppoe}}, |
255
|
|
|
|
|
|
|
@{$EXPORT_TAGS{ppp}}, |
256
|
|
|
|
|
|
|
@{$EXPORT_TAGS{llc}}, |
257
|
|
|
|
|
|
|
@{$EXPORT_TAGS{ppplcp}}, |
258
|
|
|
|
|
|
|
@{$EXPORT_TAGS{cdp}}, |
259
|
|
|
|
|
|
|
@{$EXPORT_TAGS{stp}}, |
260
|
|
|
|
|
|
|
@{$EXPORT_TAGS{ospf}}, |
261
|
|
|
|
|
|
|
@{$EXPORT_TAGS{igmpv4}}, |
262
|
|
|
|
|
|
|
); |
263
|
|
|
|
|
|
|
|
264
|
29
|
|
|
29
|
|
169
|
use constant NP_DESC_IPPROTO_IP => 0; |
|
29
|
|
|
|
|
44
|
|
|
29
|
|
|
|
|
2368
|
|
265
|
29
|
|
|
29
|
|
141
|
use constant NP_DESC_IPPROTO_ICMPv4 => 1; |
|
29
|
|
|
|
|
46
|
|
|
29
|
|
|
|
|
1427
|
|
266
|
29
|
|
|
29
|
|
137
|
use constant NP_DESC_IPPROTO_TCP => 6; |
|
29
|
|
|
|
|
41
|
|
|
29
|
|
|
|
|
1286
|
|
267
|
29
|
|
|
29
|
|
133
|
use constant NP_DESC_IPPROTO_UDP => 17; |
|
29
|
|
|
|
|
41
|
|
|
29
|
|
|
|
|
1416
|
|
268
|
29
|
|
|
29
|
|
143
|
use constant NP_DESC_IPPROTO_IPv6 => 41; |
|
29
|
|
|
|
|
44
|
|
|
29
|
|
|
|
|
1331
|
|
269
|
29
|
|
|
29
|
|
132
|
use constant NP_DESC_IPPROTO_RAW => 255; |
|
29
|
|
|
|
|
47
|
|
|
29
|
|
|
|
|
1444
|
|
270
|
29
|
|
|
29
|
|
136
|
use constant NP_DESC_IP_HDRINCL => 2; |
|
29
|
|
|
|
|
46
|
|
|
29
|
|
|
|
|
9262
|
|
271
|
29
|
|
|
29
|
|
156
|
use constant NP_DESC_L2 => 'DescL2'; |
|
29
|
|
|
|
|
52
|
|
|
29
|
|
|
|
|
1365
|
|
272
|
29
|
|
|
29
|
|
140
|
use constant NP_DESC_L3 => 'DescL3'; |
|
29
|
|
|
|
|
52
|
|
|
29
|
|
|
|
|
1312
|
|
273
|
29
|
|
|
29
|
|
133
|
use constant NP_DESC_L4 => 'DescL4'; |
|
29
|
|
|
|
|
52
|
|
|
29
|
|
|
|
|
1239
|
|
274
|
|
|
|
|
|
|
|
275
|
29
|
|
|
29
|
|
134
|
use constant NP_DUMP_LINK_NULL => 0; |
|
29
|
|
|
|
|
81
|
|
|
29
|
|
|
|
|
1276
|
|
276
|
29
|
|
|
29
|
|
138
|
use constant NP_DUMP_LINK_EN10MB => 1; |
|
29
|
|
|
|
|
91
|
|
|
29
|
|
|
|
|
2607
|
|
277
|
29
|
|
|
29
|
|
281
|
use constant NP_DUMP_LINK_PPP => 9; |
|
29
|
|
|
|
|
180
|
|
|
29
|
|
|
|
|
3740
|
|
278
|
29
|
|
|
29
|
|
413
|
use constant NP_DUMP_LINK_RAW => 12; |
|
29
|
|
|
|
|
65
|
|
|
29
|
|
|
|
|
2762
|
|
279
|
29
|
|
|
29
|
|
271
|
use constant NP_DUMP_LINK_SLL => 113; |
|
29
|
|
|
|
|
100
|
|
|
29
|
|
|
|
|
1857
|
|
280
|
29
|
|
|
29
|
|
178
|
use constant NP_DUMP_MODE_ONLINE => 0; |
|
29
|
|
|
|
|
59
|
|
|
29
|
|
|
|
|
1725
|
|
281
|
29
|
|
|
29
|
|
175
|
use constant NP_DUMP_MODE_OFFLINE => 1; |
|
29
|
|
|
|
|
42
|
|
|
29
|
|
|
|
|
1497
|
|
282
|
29
|
|
|
29
|
|
181
|
use constant NP_DUMP_MODE_WRITER => 2; |
|
29
|
|
|
|
|
37
|
|
|
29
|
|
|
|
|
1875
|
|
283
|
|
|
|
|
|
|
|
284
|
29
|
|
|
29
|
|
810
|
use constant NP_LAYER => 'Net::Packet::'; |
|
29
|
|
|
|
|
68
|
|
|
29
|
|
|
|
|
1771
|
|
285
|
29
|
|
|
29
|
|
157
|
use constant NP_LAYER_ETH => 'ETH'; |
|
29
|
|
|
|
|
43
|
|
|
29
|
|
|
|
|
1557
|
|
286
|
29
|
|
|
29
|
|
131
|
use constant NP_LAYER_NULL => 'NULL'; |
|
29
|
|
|
|
|
44
|
|
|
29
|
|
|
|
|
1324
|
|
287
|
29
|
|
|
29
|
|
125
|
use constant NP_LAYER_RAW => 'RAW'; |
|
29
|
|
|
|
|
37
|
|
|
29
|
|
|
|
|
1286
|
|
288
|
29
|
|
|
29
|
|
134
|
use constant NP_LAYER_SLL => 'SLL'; |
|
29
|
|
|
|
|
38
|
|
|
29
|
|
|
|
|
1198
|
|
289
|
29
|
|
|
29
|
|
120
|
use constant NP_LAYER_ARP => 'ARP'; |
|
29
|
|
|
|
|
33
|
|
|
29
|
|
|
|
|
1199
|
|
290
|
29
|
|
|
29
|
|
130
|
use constant NP_LAYER_IPv4 => 'IPv4'; |
|
29
|
|
|
|
|
41
|
|
|
29
|
|
|
|
|
1335
|
|
291
|
29
|
|
|
29
|
|
131
|
use constant NP_LAYER_IPv6 => 'IPv6'; |
|
29
|
|
|
|
|
36
|
|
|
29
|
|
|
|
|
1443
|
|
292
|
29
|
|
|
29
|
|
148
|
use constant NP_LAYER_VLAN => 'VLAN'; |
|
29
|
|
|
|
|
98
|
|
|
29
|
|
|
|
|
1455
|
|
293
|
29
|
|
|
29
|
|
147
|
use constant NP_LAYER_TCP => 'TCP'; |
|
29
|
|
|
|
|
46
|
|
|
29
|
|
|
|
|
1505
|
|
294
|
29
|
|
|
29
|
|
139
|
use constant NP_LAYER_UDP => 'UDP'; |
|
29
|
|
|
|
|
53
|
|
|
29
|
|
|
|
|
1303
|
|
295
|
29
|
|
|
29
|
|
129
|
use constant NP_LAYER_ICMPv4 => 'ICMPv4'; |
|
29
|
|
|
|
|
36
|
|
|
29
|
|
|
|
|
1294
|
|
296
|
29
|
|
|
29
|
|
129
|
use constant NP_LAYER_7 => 'Layer7'; |
|
29
|
|
|
|
|
45
|
|
|
29
|
|
|
|
|
1553
|
|
297
|
29
|
|
|
29
|
|
140
|
use constant NP_LAYER_NONE => 'NONE'; |
|
29
|
|
|
|
|
35
|
|
|
29
|
|
|
|
|
1325
|
|
298
|
29
|
|
|
29
|
|
129
|
use constant NP_LAYER_UNKNOWN => 'UNKNOWN'; |
|
29
|
|
|
|
|
33
|
|
|
29
|
|
|
|
|
1356
|
|
299
|
29
|
|
|
29
|
|
134
|
use constant NP_LAYER_PPPoE => 'PPPoE'; |
|
29
|
|
|
|
|
38
|
|
|
29
|
|
|
|
|
1447
|
|
300
|
29
|
|
|
29
|
|
148
|
use constant NP_LAYER_PPP => 'PPP'; |
|
29
|
|
|
|
|
43
|
|
|
29
|
|
|
|
|
1886
|
|
301
|
29
|
|
|
29
|
|
148
|
use constant NP_LAYER_LLC => 'LLC'; |
|
29
|
|
|
|
|
47
|
|
|
29
|
|
|
|
|
1321
|
|
302
|
29
|
|
|
29
|
|
123
|
use constant NP_LAYER_PPPLCP => 'PPPLCP'; |
|
29
|
|
|
|
|
41
|
|
|
29
|
|
|
|
|
1269
|
|
303
|
29
|
|
|
29
|
|
155
|
use constant NP_LAYER_CDP => 'CDP'; |
|
29
|
|
|
|
|
39
|
|
|
29
|
|
|
|
|
1370
|
|
304
|
29
|
|
|
29
|
|
130
|
use constant NP_LAYER_STP => 'STP'; |
|
29
|
|
|
|
|
36
|
|
|
29
|
|
|
|
|
1297
|
|
305
|
29
|
|
|
29
|
|
146
|
use constant NP_LAYER_OSPF => 'OSPF'; |
|
29
|
|
|
|
|
37
|
|
|
29
|
|
|
|
|
1449
|
|
306
|
29
|
|
|
29
|
|
138
|
use constant NP_LAYER_IGMPv4 => 'IGMPv4'; |
|
29
|
|
|
|
|
36
|
|
|
29
|
|
|
|
|
1637
|
|
307
|
29
|
|
|
29
|
|
153
|
use constant NP_LAYER_N_2 => 'L2'; |
|
29
|
|
|
|
|
37
|
|
|
29
|
|
|
|
|
1469
|
|
308
|
29
|
|
|
29
|
|
155
|
use constant NP_LAYER_N_3 => 'L3'; |
|
29
|
|
|
|
|
35
|
|
|
29
|
|
|
|
|
1445
|
|
309
|
29
|
|
|
29
|
|
129
|
use constant NP_LAYER_N_4 => 'L4'; |
|
29
|
|
|
|
|
49
|
|
|
29
|
|
|
|
|
1603
|
|
310
|
29
|
|
|
29
|
|
140
|
use constant NP_LAYER_N_7 => 'L7'; |
|
29
|
|
|
|
|
33
|
|
|
29
|
|
|
|
|
1607
|
|
311
|
29
|
|
|
29
|
|
136
|
use constant NP_LAYER_N_UNKNOWN => 'L?'; |
|
29
|
|
|
|
|
54
|
|
|
29
|
|
|
|
|
9319
|
|
312
|
|
|
|
|
|
|
|
313
|
29
|
|
|
29
|
|
157
|
use constant NP_ETH_HDR_LEN => 14; |
|
29
|
|
|
|
|
45
|
|
|
29
|
|
|
|
|
1459
|
|
314
|
29
|
|
|
29
|
|
136
|
use constant NP_ETH_ADDR_BROADCAST => 'ff:ff:ff:ff:ff:ff'; |
|
29
|
|
|
|
|
45
|
|
|
29
|
|
|
|
|
1197
|
|
315
|
29
|
|
|
29
|
|
135
|
use constant NP_ETH_TYPE_IPv4 => 0x0800; |
|
29
|
|
|
|
|
42
|
|
|
29
|
|
|
|
|
1200
|
|
316
|
29
|
|
|
29
|
|
127
|
use constant NP_ETH_TYPE_ARP => 0x0806; |
|
29
|
|
|
|
|
37
|
|
|
29
|
|
|
|
|
1311
|
|
317
|
29
|
|
|
29
|
|
153
|
use constant NP_ETH_TYPE_VLAN => 0x8100; |
|
29
|
|
|
|
|
41
|
|
|
29
|
|
|
|
|
1494
|
|
318
|
29
|
|
|
29
|
|
146
|
use constant NP_ETH_TYPE_IPv6 => 0x86dd; |
|
29
|
|
|
|
|
48
|
|
|
29
|
|
|
|
|
1363
|
|
319
|
29
|
|
|
29
|
|
139
|
use constant NP_ETH_TYPE_PPPoE => 0x8864; |
|
29
|
|
|
|
|
38
|
|
|
29
|
|
|
|
|
1237
|
|
320
|
|
|
|
|
|
|
|
321
|
29
|
|
|
29
|
|
134
|
use constant NP_NULL_HDR_LEN => 4; |
|
29
|
|
|
|
|
44
|
|
|
29
|
|
|
|
|
1653
|
|
322
|
29
|
|
|
29
|
|
147
|
use constant NP_NULL_TYPE_IPv4 => 0x02000000; |
|
29
|
|
|
|
|
94
|
|
|
29
|
|
|
|
|
1305
|
|
323
|
29
|
|
|
29
|
|
128
|
use constant NP_NULL_TYPE_IPv6 => 0x1c000000; |
|
29
|
|
|
|
|
41
|
|
|
29
|
|
|
|
|
1237
|
|
324
|
|
|
|
|
|
|
|
325
|
29
|
|
|
29
|
|
128
|
use constant NP_SLL_HDR_LEN => 16; |
|
29
|
|
|
|
|
32
|
|
|
29
|
|
|
|
|
1443
|
|
326
|
29
|
|
|
29
|
|
127
|
use constant NP_SLL_PACKET_TYPE_SENT_BY_US => 4; |
|
29
|
|
|
|
|
36
|
|
|
29
|
|
|
|
|
1255
|
|
327
|
29
|
|
|
29
|
|
150
|
use constant NP_SLL_PACKET_TYPE_UNICAST_TO_US => 0; |
|
29
|
|
|
|
|
68
|
|
|
29
|
|
|
|
|
1265
|
|
328
|
29
|
|
|
29
|
|
151
|
use constant NP_SLL_ADDRESS_TYPE_512 => 512; |
|
29
|
|
|
|
|
47
|
|
|
29
|
|
|
|
|
2123
|
|
329
|
29
|
|
|
29
|
|
141
|
use constant NP_SLL_PROTOCOL_IPv4 => NP_ETH_TYPE_IPv4; |
|
29
|
|
|
|
|
59
|
|
|
29
|
|
|
|
|
2363
|
|
330
|
29
|
|
|
29
|
|
145
|
use constant NP_SLL_PROTOCOL_IPv6 => NP_ETH_TYPE_IPv6; |
|
29
|
|
|
|
|
38
|
|
|
29
|
|
|
|
|
1516
|
|
331
|
29
|
|
|
29
|
|
131
|
use constant NP_SLL_PROTOCOL_ARP => NP_ETH_TYPE_ARP; |
|
29
|
|
|
|
|
39
|
|
|
29
|
|
|
|
|
1537
|
|
332
|
29
|
|
|
29
|
|
123
|
use constant NP_SLL_PROTOCOL_VLAN => NP_ETH_TYPE_VLAN; |
|
29
|
|
|
|
|
49
|
|
|
29
|
|
|
|
|
1236
|
|
333
|
|
|
|
|
|
|
|
334
|
29
|
|
|
29
|
|
130
|
use constant NP_VLAN_HDR_LEN => 4; |
|
29
|
|
|
|
|
42
|
|
|
29
|
|
|
|
|
1423
|
|
335
|
29
|
|
|
29
|
|
141
|
use constant NP_VLAN_TYPE_ARP => NP_ETH_TYPE_ARP; |
|
29
|
|
|
|
|
125
|
|
|
29
|
|
|
|
|
1642
|
|
336
|
29
|
|
|
29
|
|
153
|
use constant NP_VLAN_TYPE_IPv4 => NP_ETH_TYPE_IPv4; |
|
29
|
|
|
|
|
47
|
|
|
29
|
|
|
|
|
1522
|
|
337
|
29
|
|
|
29
|
|
128
|
use constant NP_VLAN_TYPE_IPv6 => NP_ETH_TYPE_IPv6; |
|
29
|
|
|
|
|
31
|
|
|
29
|
|
|
|
|
1486
|
|
338
|
29
|
|
|
29
|
|
130
|
use constant NP_VLAN_TYPE_VLAN => NP_ETH_TYPE_VLAN; |
|
29
|
|
|
|
|
34
|
|
|
29
|
|
|
|
|
1316
|
|
339
|
|
|
|
|
|
|
|
340
|
29
|
|
|
29
|
|
129
|
use constant NP_ARP_HDR_LEN => 28; |
|
29
|
|
|
|
|
36
|
|
|
29
|
|
|
|
|
1394
|
|
341
|
29
|
|
|
29
|
|
139
|
use constant NP_ARP_HTYPE_ETH => 0x0001; |
|
29
|
|
|
|
|
33
|
|
|
29
|
|
|
|
|
1482
|
|
342
|
29
|
|
|
29
|
|
160
|
use constant NP_ARP_PTYPE_IPv4 => NP_ETH_TYPE_IPv4; |
|
29
|
|
|
|
|
37
|
|
|
29
|
|
|
|
|
1263
|
|
343
|
29
|
|
|
29
|
|
128
|
use constant NP_ARP_HSIZE_ETH => 0x06; |
|
29
|
|
|
|
|
35
|
|
|
29
|
|
|
|
|
1391
|
|
344
|
29
|
|
|
29
|
|
136
|
use constant NP_ARP_PSIZE_IPv4 => 0x04; |
|
29
|
|
|
|
|
41
|
|
|
29
|
|
|
|
|
1324
|
|
345
|
29
|
|
|
29
|
|
137
|
use constant NP_ARP_OPCODE_REQUEST => 0x0001; |
|
29
|
|
|
|
|
36
|
|
|
29
|
|
|
|
|
1361
|
|
346
|
29
|
|
|
29
|
|
125
|
use constant NP_ARP_OPCODE_REPLY => 0x0002; |
|
29
|
|
|
|
|
35
|
|
|
29
|
|
|
|
|
1222
|
|
347
|
29
|
|
|
29
|
|
121
|
use constant NP_ARP_ADDR_BROADCAST => '00:00:00:00:00:00'; |
|
29
|
|
|
|
|
46
|
|
|
29
|
|
|
|
|
1231
|
|
348
|
|
|
|
|
|
|
|
349
|
29
|
|
|
29
|
|
148
|
use constant NP_IPv4_HDR_LEN => 20; |
|
29
|
|
|
|
|
39
|
|
|
29
|
|
|
|
|
1230
|
|
350
|
29
|
|
|
29
|
|
130
|
use constant NP_IPv4_V4 => 4; |
|
29
|
|
|
|
|
35
|
|
|
29
|
|
|
|
|
1176
|
|
351
|
29
|
|
|
29
|
|
150
|
use constant NP_IPv4_PROTOCOL_ICMPv4 => 1; |
|
29
|
|
|
|
|
40
|
|
|
29
|
|
|
|
|
1237
|
|
352
|
29
|
|
|
29
|
|
127
|
use constant NP_IPv4_PROTOCOL_TCP => 6; |
|
29
|
|
|
|
|
36
|
|
|
29
|
|
|
|
|
1229
|
|
353
|
29
|
|
|
29
|
|
139
|
use constant NP_IPv4_PROTOCOL_UDP => 17; |
|
29
|
|
|
|
|
62
|
|
|
29
|
|
|
|
|
1317
|
|
354
|
29
|
|
|
29
|
|
146
|
use constant NP_IPv4_PROTOCOL_IPv6 => 41; |
|
29
|
|
|
|
|
46
|
|
|
29
|
|
|
|
|
1234
|
|
355
|
29
|
|
|
29
|
|
127
|
use constant NP_IPv4_PROTOCOL_OSPF => 0x59; |
|
29
|
|
|
|
|
51
|
|
|
29
|
|
|
|
|
1212
|
|
356
|
29
|
|
|
29
|
|
133
|
use constant NP_IPv4_PROTOCOL_IGMPv4 => 0x02; |
|
29
|
|
|
|
|
55
|
|
|
29
|
|
|
|
|
1313
|
|
357
|
29
|
|
|
29
|
|
129
|
use constant NP_IPv4_MORE_FRAGMENT => 1; |
|
29
|
|
|
|
|
37
|
|
|
29
|
|
|
|
|
1286
|
|
358
|
29
|
|
|
29
|
|
129
|
use constant NP_IPv4_DONT_FRAGMENT => 2; |
|
29
|
|
|
|
|
33
|
|
|
29
|
|
|
|
|
1301
|
|
359
|
29
|
|
|
29
|
|
138
|
use constant NP_IPv4_RESERVED_FRAGMENT => 4; |
|
29
|
|
|
|
|
35
|
|
|
29
|
|
|
|
|
1555
|
|
360
|
|
|
|
|
|
|
|
361
|
29
|
|
|
29
|
|
161
|
use constant NP_IPv6_HDR_LEN => 40; |
|
29
|
|
|
|
|
32
|
|
|
29
|
|
|
|
|
2033
|
|
362
|
29
|
|
|
29
|
|
1739
|
use constant NP_IPv6_V6 => 6; |
|
29
|
|
|
|
|
1291
|
|
|
29
|
|
|
|
|
4154
|
|
363
|
29
|
|
|
29
|
|
815
|
use constant NP_IPv6_PROTOCOL_TCP => NP_IPv4_PROTOCOL_TCP(); |
|
29
|
|
|
|
|
820
|
|
|
29
|
|
|
|
|
5989
|
|
364
|
29
|
|
|
29
|
|
799
|
use constant NP_IPv6_PROTOCOL_UDP => NP_IPv4_PROTOCOL_UDP(); |
|
29
|
|
|
|
|
48
|
|
|
29
|
|
|
|
|
5617
|
|
365
|
|
|
|
|
|
|
|
366
|
29
|
|
|
29
|
|
137
|
use constant NP_PPP_HDR_LEN => 4; |
|
29
|
|
|
|
|
1066
|
|
|
29
|
|
|
|
|
4706
|
|
367
|
29
|
|
|
29
|
|
800
|
use constant NP_PPP_PROTOCOL_IPv4 => 0x0021; |
|
29
|
|
|
|
|
29
|
|
|
29
|
|
|
|
|
1094
|
|
368
|
29
|
|
|
29
|
|
116
|
use constant NP_PPP_PROTOCOL_PPPLCP => 0xc021; |
|
29
|
|
|
|
|
31
|
|
|
29
|
|
|
|
|
1054
|
|
369
|
|
|
|
|
|
|
|
370
|
29
|
|
|
29
|
|
125
|
use constant NP_PPPoE_HDR_LEN => 8; |
|
29
|
|
|
|
|
35
|
|
|
29
|
|
|
|
|
1370
|
|
371
|
29
|
|
|
29
|
|
127
|
use constant NP_PPPoE_PPP_PROTOCOL_IPv4 => NP_PPP_PROTOCOL_IPv4(); |
|
29
|
|
|
|
|
35
|
|
|
29
|
|
|
|
|
1407
|
|
372
|
29
|
|
|
29
|
|
123
|
use constant NP_PPPoE_PPP_PROTOCOL_PPPLCP => NP_PPP_PROTOCOL_PPPLCP(); |
|
29
|
|
|
|
|
33
|
|
|
29
|
|
|
|
|
1061
|
|
373
|
|
|
|
|
|
|
|
374
|
29
|
|
|
29
|
|
140
|
use constant NP_LLC_HDR_LEN => 8; |
|
29
|
|
|
|
|
32
|
|
|
29
|
|
|
|
|
1075
|
|
375
|
29
|
|
|
29
|
|
190
|
use constant NP_LLC_OUI_CISCO => 0x00000c; |
|
29
|
|
|
|
|
34
|
|
|
29
|
|
|
|
|
1123
|
|
376
|
29
|
|
|
29
|
|
112
|
use constant NP_LLC_PID_CDP => 0x2000; |
|
29
|
|
|
|
|
30
|
|
|
29
|
|
|
|
|
1083
|
|
377
|
29
|
|
|
29
|
|
127
|
use constant NP_LLC_PID_STP => 0x010b; |
|
29
|
|
|
|
|
97
|
|
|
29
|
|
|
|
|
1164
|
|
378
|
29
|
|
|
29
|
|
131
|
use constant NP_LLC_DSAP_SNAP => 0x2a; |
|
29
|
|
|
|
|
43
|
|
|
29
|
|
|
|
|
1393
|
|
379
|
29
|
|
|
29
|
|
128
|
use constant NP_LLC_SSAP_SNAP => NP_LLC_DSAP_SNAP(); |
|
29
|
|
|
|
|
42
|
|
|
29
|
|
|
|
|
1232
|
|
380
|
|
|
|
|
|
|
|
381
|
29
|
|
|
29
|
|
138
|
use constant NP_PPPLCP_HDR_LEN => 8; |
|
29
|
|
|
|
|
52
|
|
|
29
|
|
|
|
|
1451
|
|
382
|
29
|
|
|
29
|
|
138
|
use constant NP_PPPLCP_CODE_ECHO_REQUEST => 0x09; |
|
29
|
|
|
|
|
49
|
|
|
29
|
|
|
|
|
1315
|
|
383
|
29
|
|
|
29
|
|
128
|
use constant NP_PPPLCP_CODE_ECHO_REPLY => 0x0a; |
|
29
|
|
|
|
|
29
|
|
|
29
|
|
|
|
|
1257
|
|
384
|
|
|
|
|
|
|
|
385
|
29
|
|
|
29
|
|
122
|
use constant NP_CDP_HDR_LEN => 4; |
|
29
|
|
|
|
|
36
|
|
|
29
|
|
|
|
|
1197
|
|
386
|
29
|
|
|
29
|
|
123
|
use constant NP_CDP_TYPE_DEVICE_ID => 0x0001; |
|
29
|
|
|
|
|
31
|
|
|
29
|
|
|
|
|
1656
|
|
387
|
29
|
|
|
29
|
|
133
|
use constant NP_CDP_TYPE_ADDRESSES => 0x0002; |
|
29
|
|
|
|
|
40
|
|
|
29
|
|
|
|
|
1319
|
|
388
|
29
|
|
|
29
|
|
129
|
use constant NP_CDP_TYPE_PORT_ID => 0x0003; |
|
29
|
|
|
|
|
35
|
|
|
29
|
|
|
|
|
1209
|
|
389
|
29
|
|
|
29
|
|
125
|
use constant NP_CDP_TYPE_CAPABILITIES => 0x0004; |
|
29
|
|
|
|
|
36
|
|
|
29
|
|
|
|
|
1343
|
|
390
|
29
|
|
|
29
|
|
149
|
use constant NP_CDP_TYPE_SOFTWARE_VERSION => 0x0005; |
|
29
|
|
|
|
|
54
|
|
|
29
|
|
|
|
|
1480
|
|
391
|
29
|
|
|
29
|
|
135
|
use constant NP_CDP_TYPE_PLATFORM => 0x0006; |
|
29
|
|
|
|
|
40
|
|
|
29
|
|
|
|
|
1640
|
|
392
|
29
|
|
|
29
|
|
131
|
use constant NP_CDP_TYPE_UNKNOWN_0007 => 0x0007; |
|
29
|
|
|
|
|
42
|
|
|
29
|
|
|
|
|
1243
|
|
393
|
29
|
|
|
29
|
|
125
|
use constant NP_CDP_TYPE_UNKNOWN_0008 => 0x0008; |
|
29
|
|
|
|
|
31
|
|
|
29
|
|
|
|
|
1231
|
|
394
|
29
|
|
|
29
|
|
128
|
use constant NP_CDP_TYPE_VTP_MANAGEMENT_DOMAIN => 0x0009; |
|
29
|
|
|
|
|
34
|
|
|
29
|
|
|
|
|
1149
|
|
395
|
29
|
|
|
29
|
|
155
|
use constant NP_CDP_TYPE_UNKNOWN_000a => 0x000a; |
|
29
|
|
|
|
|
34
|
|
|
29
|
|
|
|
|
1591
|
|
396
|
29
|
|
|
29
|
|
169
|
use constant NP_CDP_TYPE_DUPLEX => 0x000b; |
|
29
|
|
|
|
|
34
|
|
|
29
|
|
|
|
|
1299
|
|
397
|
29
|
|
|
29
|
|
148
|
use constant NP_CDP_TYPE_UNKNOWN_000c => 0x000c; |
|
29
|
|
|
|
|
37
|
|
|
29
|
|
|
|
|
1395
|
|
398
|
29
|
|
|
29
|
|
151
|
use constant NP_CDP_TYPE_UNKNOWN_000d => 0x000d; |
|
29
|
|
|
|
|
51
|
|
|
29
|
|
|
|
|
1252
|
|
399
|
29
|
|
|
29
|
|
127
|
use constant NP_CDP_TYPE_VOIP_VLAN_REPLY => 0x000e; |
|
29
|
|
|
|
|
41
|
|
|
29
|
|
|
|
|
1328
|
|
400
|
29
|
|
|
29
|
|
132
|
use constant NP_CDP_TYPE_UNKNOWN_000f => 0x000f; |
|
29
|
|
|
|
|
48
|
|
|
29
|
|
|
|
|
1200
|
|
401
|
29
|
|
|
29
|
|
121
|
use constant NP_CDP_TYPE_UNKNOWN_0010 => 0x0010; |
|
29
|
|
|
|
|
38
|
|
|
29
|
|
|
|
|
1533
|
|
402
|
29
|
|
|
29
|
|
131
|
use constant NP_CDP_TYPE_UNKNOWN_0011 => 0x0011; |
|
29
|
|
|
|
|
45
|
|
|
29
|
|
|
|
|
1232
|
|
403
|
29
|
|
|
29
|
|
122
|
use constant NP_CDP_TYPE_TRUST_BITMAP => 0x0012; |
|
29
|
|
|
|
|
37
|
|
|
29
|
|
|
|
|
1227
|
|
404
|
29
|
|
|
29
|
|
125
|
use constant NP_CDP_TYPE_UNTRUSTED_PORT_COS => 0x0013; |
|
29
|
|
|
|
|
37
|
|
|
29
|
|
|
|
|
1252
|
|
405
|
29
|
|
|
29
|
|
149
|
use constant NP_CDP_TYPE_SYSTEM_NAME => 0x0014; |
|
29
|
|
|
|
|
42
|
|
|
29
|
|
|
|
|
1434
|
|
406
|
29
|
|
|
29
|
|
145
|
use constant NP_CDP_TYPE_SYSTEM_OBJECT_ID => 0x0015; |
|
29
|
|
|
|
|
36
|
|
|
29
|
|
|
|
|
1383
|
|
407
|
29
|
|
|
29
|
|
138
|
use constant NP_CDP_TYPE_UNKNOWN_0016 => 0x0016; |
|
29
|
|
|
|
|
41
|
|
|
29
|
|
|
|
|
1227
|
|
408
|
29
|
|
|
29
|
|
120
|
use constant NP_CDP_TYPE_LOCATION => 0x0017; |
|
29
|
|
|
|
|
35
|
|
|
29
|
|
|
|
|
1202
|
|
409
|
29
|
|
|
29
|
|
122
|
use constant NP_CDP_ADDRESS_PROTOCOL_TYPE_NLPID => 0x01; |
|
29
|
|
|
|
|
47
|
|
|
29
|
|
|
|
|
1247
|
|
410
|
29
|
|
|
29
|
|
241
|
use constant NP_CDP_ADDRESS_PROTOCOL_LENGTH_NLPID => 0x01; |
|
29
|
|
|
|
|
36
|
|
|
29
|
|
|
|
|
1242
|
|
411
|
29
|
|
|
29
|
|
130
|
use constant NP_CDP_ADDRESS_PROTOCOL_IP => 0xcc; |
|
29
|
|
|
|
|
40
|
|
|
29
|
|
|
|
|
1228
|
|
412
|
29
|
|
|
29
|
|
133
|
use constant NP_CDP_ADDRESS_ADDRESS_LENGTH_IP => 0x0004; |
|
29
|
|
|
|
|
34
|
|
|
29
|
|
|
|
|
1283
|
|
413
|
|
|
|
|
|
|
|
414
|
29
|
|
|
29
|
|
143
|
use constant NP_STP_HDR_LEN => 42; |
|
29
|
|
|
|
|
55
|
|
|
29
|
|
|
|
|
1286
|
|
415
|
29
|
|
|
29
|
|
144
|
use constant NP_STP_PROTOCOL_IDENTIFIER_STP => 0x0000; |
|
29
|
|
|
|
|
41
|
|
|
29
|
|
|
|
|
1314
|
|
416
|
|
|
|
|
|
|
|
417
|
29
|
|
|
29
|
|
127
|
use constant NP_OSPF_HDR_LEN => 24; |
|
29
|
|
|
|
|
34
|
|
|
29
|
|
|
|
|
1195
|
|
418
|
29
|
|
|
29
|
|
126
|
use constant NP_OSPF_AUTH_TYPE_NULL => 0x0000; |
|
29
|
|
|
|
|
36
|
|
|
29
|
|
|
|
|
1262
|
|
419
|
|
|
|
|
|
|
|
420
|
29
|
|
|
29
|
|
141
|
use constant NP_IGMPv4_HDR_LEN => 8; |
|
29
|
|
|
|
|
41
|
|
|
29
|
|
|
|
|
1268
|
|
421
|
29
|
|
|
29
|
|
129
|
use constant NP_IGMPv4_v1_TYPE_QUERY => 1; |
|
29
|
|
|
|
|
41
|
|
|
29
|
|
|
|
|
1242
|
|
422
|
29
|
|
|
29
|
|
127
|
use constant NP_IGMPv4_v1_TYPE_REPORT => 2; |
|
29
|
|
|
|
|
46
|
|
|
29
|
|
|
|
|
1139
|
|
423
|
29
|
|
|
29
|
|
114
|
use constant NP_IGMPv4_v2_TYPE_QUERY => 0x11; |
|
29
|
|
|
|
|
36
|
|
|
29
|
|
|
|
|
1211
|
|
424
|
29
|
|
|
29
|
|
128
|
use constant NP_IGMPv4_v2_TYPE_QUERY_v1 => 0x12; |
|
29
|
|
|
|
|
47
|
|
|
29
|
|
|
|
|
1317
|
|
425
|
29
|
|
|
29
|
|
122
|
use constant NP_IGMPv4_v2_TYPE_REPORT => 0x16; |
|
29
|
|
|
|
|
44
|
|
|
29
|
|
|
|
|
1361
|
|
426
|
29
|
|
|
29
|
|
128
|
use constant NP_IGMPv4_v2_TYPE_LEAVE_GROUP => 0x17; |
|
29
|
|
|
|
|
36
|
|
|
29
|
|
|
|
|
1285
|
|
427
|
29
|
|
|
29
|
|
1782
|
use constant NP_IGMPv4_GROUP_ADDRESS_NO_HOSTS => '224.0.0.0'; |
|
29
|
|
|
|
|
47
|
|
|
29
|
|
|
|
|
1642
|
|
428
|
29
|
|
|
29
|
|
129
|
use constant NP_IGMPv4_GROUP_ADDRESS_ALL_HOSTS => '224.0.0.1'; |
|
29
|
|
|
|
|
35
|
|
|
29
|
|
|
|
|
1260
|
|
429
|
29
|
|
|
29
|
|
163
|
use constant NP_IGMPv4_GROUP_ADDRESS_ALL_ROUTERS => '224.0.0.2'; |
|
29
|
|
|
|
|
32
|
|
|
29
|
|
|
|
|
1214
|
|
430
|
|
|
|
|
|
|
|
431
|
29
|
|
|
29
|
|
115
|
use constant NP_TCP_HDR_LEN => 20; |
|
29
|
|
|
|
|
35
|
|
|
29
|
|
|
|
|
2037
|
|
432
|
29
|
|
|
29
|
|
137
|
use constant NP_TCP_FLAG_FIN => 0x01; |
|
29
|
|
|
|
|
37
|
|
|
29
|
|
|
|
|
1322
|
|
433
|
29
|
|
|
29
|
|
132
|
use constant NP_TCP_FLAG_SYN => 0x02; |
|
29
|
|
|
|
|
50
|
|
|
29
|
|
|
|
|
1180
|
|
434
|
29
|
|
|
29
|
|
115
|
use constant NP_TCP_FLAG_RST => 0x04; |
|
29
|
|
|
|
|
31
|
|
|
29
|
|
|
|
|
1092
|
|
435
|
29
|
|
|
29
|
|
114
|
use constant NP_TCP_FLAG_PSH => 0x08; |
|
29
|
|
|
|
|
34
|
|
|
29
|
|
|
|
|
1124
|
|
436
|
29
|
|
|
29
|
|
115
|
use constant NP_TCP_FLAG_ACK => 0x10; |
|
29
|
|
|
|
|
31
|
|
|
29
|
|
|
|
|
1174
|
|
437
|
29
|
|
|
29
|
|
117
|
use constant NP_TCP_FLAG_URG => 0x20; |
|
29
|
|
|
|
|
36
|
|
|
29
|
|
|
|
|
1360
|
|
438
|
29
|
|
|
29
|
|
125
|
use constant NP_TCP_FLAG_ECE => 0x40; |
|
29
|
|
|
|
|
36
|
|
|
29
|
|
|
|
|
1337
|
|
439
|
29
|
|
|
29
|
|
122
|
use constant NP_TCP_FLAG_CWR => 0x80; |
|
29
|
|
|
|
|
28
|
|
|
29
|
|
|
|
|
1270
|
|
440
|
|
|
|
|
|
|
|
441
|
29
|
|
|
29
|
|
141
|
use constant NP_UDP_HDR_LEN => 8; |
|
29
|
|
|
|
|
83
|
|
|
29
|
|
|
|
|
1296
|
|
442
|
|
|
|
|
|
|
|
443
|
29
|
|
|
29
|
|
145
|
use constant NP_ICMPv4_HDR_LEN => 8; |
|
29
|
|
|
|
|
43
|
|
|
29
|
|
|
|
|
1222
|
|
444
|
29
|
|
|
29
|
|
125
|
use constant NP_ICMPv4_CODE_ZERO => 0; |
|
29
|
|
|
|
|
45
|
|
|
29
|
|
|
|
|
1157
|
|
445
|
29
|
|
|
29
|
|
114
|
use constant NP_ICMPv4_TYPE_DESTINATION_UNREACHABLE => 3; |
|
29
|
|
|
|
|
38
|
|
|
29
|
|
|
|
|
1265
|
|
446
|
29
|
|
|
29
|
|
129
|
use constant NP_ICMPv4_CODE_NETWORK => 0; |
|
29
|
|
|
|
|
31
|
|
|
29
|
|
|
|
|
1214
|
|
447
|
29
|
|
|
29
|
|
119
|
use constant NP_ICMPv4_CODE_HOST => 1; |
|
29
|
|
|
|
|
34
|
|
|
29
|
|
|
|
|
1162
|
|
448
|
29
|
|
|
29
|
|
117
|
use constant NP_ICMPv4_CODE_PROTOCOL => 2; |
|
29
|
|
|
|
|
34
|
|
|
29
|
|
|
|
|
1157
|
|
449
|
29
|
|
|
29
|
|
118
|
use constant NP_ICMPv4_CODE_PORT => 3; |
|
29
|
|
|
|
|
36
|
|
|
29
|
|
|
|
|
1203
|
|
450
|
29
|
|
|
29
|
|
129
|
use constant NP_ICMPv4_CODE_FRAGMENTATION_NEEDED => 4; |
|
29
|
|
|
|
|
52
|
|
|
29
|
|
|
|
|
1178
|
|
451
|
29
|
|
|
29
|
|
120
|
use constant NP_ICMPv4_CODE_SOURCE_ROUTE_FAILED => 5; |
|
29
|
|
|
|
|
32
|
|
|
29
|
|
|
|
|
1160
|
|
452
|
29
|
|
|
29
|
|
123
|
use constant NP_ICMPv4_TYPE_TIME_EXCEEDED => 11; |
|
29
|
|
|
|
|
31
|
|
|
29
|
|
|
|
|
1277
|
|
453
|
29
|
|
|
29
|
|
124
|
use constant NP_ICMPv4_CODE_TTL_IN_TRANSIT => 0; |
|
29
|
|
|
|
|
34
|
|
|
29
|
|
|
|
|
1162
|
|
454
|
29
|
|
|
29
|
|
120
|
use constant NP_ICMPv4_CODE_FRAGMENT_REASSEMBLY => 1; |
|
29
|
|
|
|
|
32
|
|
|
29
|
|
|
|
|
1200
|
|
455
|
29
|
|
|
29
|
|
122
|
use constant NP_ICMPv4_TYPE_PARAMETER_PROBLEM => 12; |
|
29
|
|
|
|
|
33
|
|
|
29
|
|
|
|
|
1116
|
|
456
|
29
|
|
|
29
|
|
118
|
use constant NP_ICMPv4_CODE_POINTER => 0; |
|
29
|
|
|
|
|
64
|
|
|
29
|
|
|
|
|
1341
|
|
457
|
29
|
|
|
29
|
|
135
|
use constant NP_ICMPv4_TYPE_SOURCE_QUENCH => 4; |
|
29
|
|
|
|
|
47
|
|
|
29
|
|
|
|
|
1319
|
|
458
|
29
|
|
|
29
|
|
138
|
use constant NP_ICMPv4_TYPE_REDIRECT => 5; |
|
29
|
|
|
|
|
43
|
|
|
29
|
|
|
|
|
1347
|
|
459
|
29
|
|
|
29
|
|
125
|
use constant NP_ICMPv4_CODE_FOR_NETWORK => 0; |
|
29
|
|
|
|
|
35
|
|
|
29
|
|
|
|
|
1262
|
|
460
|
29
|
|
|
29
|
|
148
|
use constant NP_ICMPv4_CODE_FOR_HOST => 1; |
|
29
|
|
|
|
|
33
|
|
|
29
|
|
|
|
|
1151
|
|
461
|
29
|
|
|
29
|
|
134
|
use constant NP_ICMPv4_CODE_FOR_TOS_AND_NETWORK => 2; |
|
29
|
|
|
|
|
47
|
|
|
29
|
|
|
|
|
1182
|
|
462
|
29
|
|
|
29
|
|
121
|
use constant NP_ICMPv4_CODE_FOR_TOS_AND_HOST => 3; |
|
29
|
|
|
|
|
50
|
|
|
29
|
|
|
|
|
1167
|
|
463
|
29
|
|
|
29
|
|
125
|
use constant NP_ICMPv4_TYPE_ECHO_REQUEST => 8; |
|
29
|
|
|
|
|
49
|
|
|
29
|
|
|
|
|
1152
|
|
464
|
29
|
|
|
29
|
|
122
|
use constant NP_ICMPv4_TYPE_ECHO_REPLY => 0; |
|
29
|
|
|
|
|
38
|
|
|
29
|
|
|
|
|
1261
|
|
465
|
29
|
|
|
29
|
|
126
|
use constant NP_ICMPv4_TYPE_TIMESTAMP_REQUEST => 13; |
|
29
|
|
|
|
|
36
|
|
|
29
|
|
|
|
|
1196
|
|
466
|
29
|
|
|
29
|
|
129
|
use constant NP_ICMPv4_TYPE_TIMESTAMP_REPLY => 14; |
|
29
|
|
|
|
|
29
|
|
|
29
|
|
|
|
|
1163
|
|
467
|
29
|
|
|
29
|
|
116
|
use constant NP_ICMPv4_TYPE_INFORMATION_REQUEST => 15; |
|
29
|
|
|
|
|
35
|
|
|
29
|
|
|
|
|
1112
|
|
468
|
29
|
|
|
29
|
|
122
|
use constant NP_ICMPv4_TYPE_INFORMATION_REPLY => 16; |
|
29
|
|
|
|
|
32
|
|
|
29
|
|
|
|
|
1204
|
|
469
|
29
|
|
|
29
|
|
116
|
use constant NP_ICMPv4_TYPE_ADDRESS_MASK_REQUEST => 17; # RFC 950 |
|
29
|
|
|
|
|
33
|
|
|
29
|
|
|
|
|
1121
|
|
470
|
29
|
|
|
29
|
|
128
|
use constant NP_ICMPv4_TYPE_ADDRESS_MASK_REPLY => 18; # RFC 950 |
|
29
|
|
|
|
|
38
|
|
|
29
|
|
|
|
|
2413
|
|
471
|
|
|
|
|
|
|
|
472
|
|
|
|
|
|
|
1; |
473
|
|
|
|
|
|
|
|
474
|
|
|
|
|
|
|
__END__ |