line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# |
2
|
|
|
|
|
|
|
# $Id: Consts.pm 1640 2009-11-09 17:58:27Z gomor $ |
3
|
|
|
|
|
|
|
# |
4
|
|
|
|
|
|
|
package Net::Packet::Consts; |
5
|
29
|
|
|
29
|
|
203
|
use strict; |
|
29
|
|
|
|
|
57
|
|
|
29
|
|
|
|
|
1424
|
|
6
|
29
|
|
|
29
|
|
199
|
use warnings; |
|
29
|
|
|
|
|
57
|
|
|
29
|
|
|
|
|
32117
|
|
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
|
|
281
|
use constant NP_DESC_IPPROTO_IP => 0; |
|
29
|
|
|
|
|
59
|
|
|
29
|
|
|
|
|
4241
|
|
265
|
29
|
|
|
29
|
|
576
|
use constant NP_DESC_IPPROTO_ICMPv4 => 1; |
|
29
|
|
|
|
|
60
|
|
|
29
|
|
|
|
|
2071
|
|
266
|
29
|
|
|
29
|
|
165
|
use constant NP_DESC_IPPROTO_TCP => 6; |
|
29
|
|
|
|
|
358
|
|
|
29
|
|
|
|
|
7089
|
|
267
|
29
|
|
|
29
|
|
528
|
use constant NP_DESC_IPPROTO_UDP => 17; |
|
29
|
|
|
|
|
54
|
|
|
29
|
|
|
|
|
1718
|
|
268
|
29
|
|
|
29
|
|
175
|
use constant NP_DESC_IPPROTO_IPv6 => 41; |
|
29
|
|
|
|
|
69
|
|
|
29
|
|
|
|
|
2535
|
|
269
|
29
|
|
|
29
|
|
162
|
use constant NP_DESC_IPPROTO_RAW => 255; |
|
29
|
|
|
|
|
89
|
|
|
29
|
|
|
|
|
1812
|
|
270
|
29
|
|
|
29
|
|
160
|
use constant NP_DESC_IP_HDRINCL => 2; |
|
29
|
|
|
|
|
57
|
|
|
29
|
|
|
|
|
1373
|
|
271
|
29
|
|
|
29
|
|
161
|
use constant NP_DESC_L2 => 'DescL2'; |
|
29
|
|
|
|
|
193
|
|
|
29
|
|
|
|
|
1342
|
|
272
|
29
|
|
|
29
|
|
180
|
use constant NP_DESC_L3 => 'DescL3'; |
|
29
|
|
|
|
|
66
|
|
|
29
|
|
|
|
|
1390
|
|
273
|
29
|
|
|
29
|
|
153
|
use constant NP_DESC_L4 => 'DescL4'; |
|
29
|
|
|
|
|
64
|
|
|
29
|
|
|
|
|
1343
|
|
274
|
|
|
|
|
|
|
|
275
|
29
|
|
|
29
|
|
188
|
use constant NP_DUMP_LINK_NULL => 0; |
|
29
|
|
|
|
|
48
|
|
|
29
|
|
|
|
|
3009
|
|
276
|
29
|
|
|
29
|
|
146
|
use constant NP_DUMP_LINK_EN10MB => 1; |
|
29
|
|
|
|
|
57
|
|
|
29
|
|
|
|
|
1450
|
|
277
|
29
|
|
|
29
|
|
148
|
use constant NP_DUMP_LINK_PPP => 9; |
|
29
|
|
|
|
|
94
|
|
|
29
|
|
|
|
|
1430
|
|
278
|
29
|
|
|
29
|
|
139
|
use constant NP_DUMP_LINK_RAW => 12; |
|
29
|
|
|
|
|
54
|
|
|
29
|
|
|
|
|
1160
|
|
279
|
29
|
|
|
29
|
|
136
|
use constant NP_DUMP_LINK_SLL => 113; |
|
29
|
|
|
|
|
64
|
|
|
29
|
|
|
|
|
1301
|
|
280
|
29
|
|
|
29
|
|
141
|
use constant NP_DUMP_MODE_ONLINE => 0; |
|
29
|
|
|
|
|
52
|
|
|
29
|
|
|
|
|
1588
|
|
281
|
29
|
|
|
29
|
|
142
|
use constant NP_DUMP_MODE_OFFLINE => 1; |
|
29
|
|
|
|
|
49
|
|
|
29
|
|
|
|
|
1366
|
|
282
|
29
|
|
|
29
|
|
140
|
use constant NP_DUMP_MODE_WRITER => 2; |
|
29
|
|
|
|
|
51
|
|
|
29
|
|
|
|
|
1464
|
|
283
|
|
|
|
|
|
|
|
284
|
29
|
|
|
29
|
|
1493
|
use constant NP_LAYER => 'Net::Packet::'; |
|
29
|
|
|
|
|
63
|
|
|
29
|
|
|
|
|
1657
|
|
285
|
29
|
|
|
29
|
|
181
|
use constant NP_LAYER_ETH => 'ETH'; |
|
29
|
|
|
|
|
51
|
|
|
29
|
|
|
|
|
2054
|
|
286
|
29
|
|
|
29
|
|
145
|
use constant NP_LAYER_NULL => 'NULL'; |
|
29
|
|
|
|
|
70
|
|
|
29
|
|
|
|
|
1575
|
|
287
|
29
|
|
|
29
|
|
172
|
use constant NP_LAYER_RAW => 'RAW'; |
|
29
|
|
|
|
|
50
|
|
|
29
|
|
|
|
|
1370
|
|
288
|
29
|
|
|
29
|
|
139
|
use constant NP_LAYER_SLL => 'SLL'; |
|
29
|
|
|
|
|
45
|
|
|
29
|
|
|
|
|
1320
|
|
289
|
29
|
|
|
29
|
|
142
|
use constant NP_LAYER_ARP => 'ARP'; |
|
29
|
|
|
|
|
63
|
|
|
29
|
|
|
|
|
1364
|
|
290
|
29
|
|
|
29
|
|
143
|
use constant NP_LAYER_IPv4 => 'IPv4'; |
|
29
|
|
|
|
|
50
|
|
|
29
|
|
|
|
|
1528
|
|
291
|
29
|
|
|
29
|
|
153
|
use constant NP_LAYER_IPv6 => 'IPv6'; |
|
29
|
|
|
|
|
52
|
|
|
29
|
|
|
|
|
2039
|
|
292
|
29
|
|
|
29
|
|
160
|
use constant NP_LAYER_VLAN => 'VLAN'; |
|
29
|
|
|
|
|
70
|
|
|
29
|
|
|
|
|
2139
|
|
293
|
29
|
|
|
29
|
|
188
|
use constant NP_LAYER_TCP => 'TCP'; |
|
29
|
|
|
|
|
73
|
|
|
29
|
|
|
|
|
1608
|
|
294
|
29
|
|
|
29
|
|
172
|
use constant NP_LAYER_UDP => 'UDP'; |
|
29
|
|
|
|
|
58
|
|
|
29
|
|
|
|
|
1244
|
|
295
|
29
|
|
|
29
|
|
146
|
use constant NP_LAYER_ICMPv4 => 'ICMPv4'; |
|
29
|
|
|
|
|
51
|
|
|
29
|
|
|
|
|
1222
|
|
296
|
29
|
|
|
29
|
|
232
|
use constant NP_LAYER_7 => 'Layer7'; |
|
29
|
|
|
|
|
52
|
|
|
29
|
|
|
|
|
3499
|
|
297
|
29
|
|
|
29
|
|
141
|
use constant NP_LAYER_NONE => 'NONE'; |
|
29
|
|
|
|
|
51
|
|
|
29
|
|
|
|
|
1615
|
|
298
|
29
|
|
|
29
|
|
140
|
use constant NP_LAYER_UNKNOWN => 'UNKNOWN'; |
|
29
|
|
|
|
|
52
|
|
|
29
|
|
|
|
|
1572
|
|
299
|
29
|
|
|
29
|
|
141
|
use constant NP_LAYER_PPPoE => 'PPPoE'; |
|
29
|
|
|
|
|
1460
|
|
|
29
|
|
|
|
|
2316
|
|
300
|
29
|
|
|
29
|
|
214
|
use constant NP_LAYER_PPP => 'PPP'; |
|
29
|
|
|
|
|
54
|
|
|
29
|
|
|
|
|
4777
|
|
301
|
29
|
|
|
29
|
|
169
|
use constant NP_LAYER_LLC => 'LLC'; |
|
29
|
|
|
|
|
55
|
|
|
29
|
|
|
|
|
1431
|
|
302
|
29
|
|
|
29
|
|
131
|
use constant NP_LAYER_PPPLCP => 'PPPLCP'; |
|
29
|
|
|
|
|
56
|
|
|
29
|
|
|
|
|
1257
|
|
303
|
29
|
|
|
29
|
|
138
|
use constant NP_LAYER_CDP => 'CDP'; |
|
29
|
|
|
|
|
55
|
|
|
29
|
|
|
|
|
1291
|
|
304
|
29
|
|
|
29
|
|
143
|
use constant NP_LAYER_STP => 'STP'; |
|
29
|
|
|
|
|
53
|
|
|
29
|
|
|
|
|
1310
|
|
305
|
29
|
|
|
29
|
|
140
|
use constant NP_LAYER_OSPF => 'OSPF'; |
|
29
|
|
|
|
|
51
|
|
|
29
|
|
|
|
|
7827
|
|
306
|
29
|
|
|
29
|
|
159
|
use constant NP_LAYER_IGMPv4 => 'IGMPv4'; |
|
29
|
|
|
|
|
57
|
|
|
29
|
|
|
|
|
1339
|
|
307
|
29
|
|
|
29
|
|
135
|
use constant NP_LAYER_N_2 => 'L2'; |
|
29
|
|
|
|
|
50
|
|
|
29
|
|
|
|
|
3657
|
|
308
|
29
|
|
|
29
|
|
234
|
use constant NP_LAYER_N_3 => 'L3'; |
|
29
|
|
|
|
|
68
|
|
|
29
|
|
|
|
|
1506
|
|
309
|
29
|
|
|
29
|
|
150
|
use constant NP_LAYER_N_4 => 'L4'; |
|
29
|
|
|
|
|
52
|
|
|
29
|
|
|
|
|
1909
|
|
310
|
29
|
|
|
29
|
|
144
|
use constant NP_LAYER_N_7 => 'L7'; |
|
29
|
|
|
|
|
55
|
|
|
29
|
|
|
|
|
1497
|
|
311
|
29
|
|
|
29
|
|
157
|
use constant NP_LAYER_N_UNKNOWN => 'L?'; |
|
29
|
|
|
|
|
66
|
|
|
29
|
|
|
|
|
1856
|
|
312
|
|
|
|
|
|
|
|
313
|
29
|
|
|
29
|
|
211
|
use constant NP_ETH_HDR_LEN => 14; |
|
29
|
|
|
|
|
62
|
|
|
29
|
|
|
|
|
1563
|
|
314
|
29
|
|
|
29
|
|
193
|
use constant NP_ETH_ADDR_BROADCAST => 'ff:ff:ff:ff:ff:ff'; |
|
29
|
|
|
|
|
66
|
|
|
29
|
|
|
|
|
2361
|
|
315
|
29
|
|
|
29
|
|
143
|
use constant NP_ETH_TYPE_IPv4 => 0x0800; |
|
29
|
|
|
|
|
58
|
|
|
29
|
|
|
|
|
1183
|
|
316
|
29
|
|
|
29
|
|
326
|
use constant NP_ETH_TYPE_ARP => 0x0806; |
|
29
|
|
|
|
|
58
|
|
|
29
|
|
|
|
|
1313
|
|
317
|
29
|
|
|
29
|
|
194
|
use constant NP_ETH_TYPE_VLAN => 0x8100; |
|
29
|
|
|
|
|
62
|
|
|
29
|
|
|
|
|
1310
|
|
318
|
29
|
|
|
29
|
|
156
|
use constant NP_ETH_TYPE_IPv6 => 0x86dd; |
|
29
|
|
|
|
|
44
|
|
|
29
|
|
|
|
|
1270
|
|
319
|
29
|
|
|
29
|
|
219
|
use constant NP_ETH_TYPE_PPPoE => 0x8864; |
|
29
|
|
|
|
|
51
|
|
|
29
|
|
|
|
|
1259
|
|
320
|
|
|
|
|
|
|
|
321
|
29
|
|
|
29
|
|
141
|
use constant NP_NULL_HDR_LEN => 4; |
|
29
|
|
|
|
|
62
|
|
|
29
|
|
|
|
|
2409
|
|
322
|
29
|
|
|
29
|
|
1847
|
use constant NP_NULL_TYPE_IPv4 => 0x02000000; |
|
29
|
|
|
|
|
57
|
|
|
29
|
|
|
|
|
1295
|
|
323
|
29
|
|
|
29
|
|
142
|
use constant NP_NULL_TYPE_IPv6 => 0x1c000000; |
|
29
|
|
|
|
|
49
|
|
|
29
|
|
|
|
|
1235
|
|
324
|
|
|
|
|
|
|
|
325
|
29
|
|
|
29
|
|
148
|
use constant NP_SLL_HDR_LEN => 16; |
|
29
|
|
|
|
|
49
|
|
|
29
|
|
|
|
|
1459
|
|
326
|
29
|
|
|
29
|
|
170
|
use constant NP_SLL_PACKET_TYPE_SENT_BY_US => 4; |
|
29
|
|
|
|
|
47
|
|
|
29
|
|
|
|
|
1649
|
|
327
|
29
|
|
|
29
|
|
171
|
use constant NP_SLL_PACKET_TYPE_UNICAST_TO_US => 0; |
|
29
|
|
|
|
|
90
|
|
|
29
|
|
|
|
|
1672
|
|
328
|
29
|
|
|
29
|
|
144
|
use constant NP_SLL_ADDRESS_TYPE_512 => 512; |
|
29
|
|
|
|
|
69
|
|
|
29
|
|
|
|
|
2045
|
|
329
|
29
|
|
|
29
|
|
152
|
use constant NP_SLL_PROTOCOL_IPv4 => NP_ETH_TYPE_IPv4; |
|
29
|
|
|
|
|
92
|
|
|
29
|
|
|
|
|
2489
|
|
330
|
29
|
|
|
29
|
|
173
|
use constant NP_SLL_PROTOCOL_IPv6 => NP_ETH_TYPE_IPv6; |
|
29
|
|
|
|
|
52
|
|
|
29
|
|
|
|
|
2193
|
|
331
|
29
|
|
|
29
|
|
148
|
use constant NP_SLL_PROTOCOL_ARP => NP_ETH_TYPE_ARP; |
|
29
|
|
|
|
|
52
|
|
|
29
|
|
|
|
|
1595
|
|
332
|
29
|
|
|
29
|
|
140
|
use constant NP_SLL_PROTOCOL_VLAN => NP_ETH_TYPE_VLAN; |
|
29
|
|
|
|
|
90
|
|
|
29
|
|
|
|
|
1452
|
|
333
|
|
|
|
|
|
|
|
334
|
29
|
|
|
29
|
|
150
|
use constant NP_VLAN_HDR_LEN => 4; |
|
29
|
|
|
|
|
64
|
|
|
29
|
|
|
|
|
10894
|
|
335
|
29
|
|
|
29
|
|
176
|
use constant NP_VLAN_TYPE_ARP => NP_ETH_TYPE_ARP; |
|
29
|
|
|
|
|
65
|
|
|
29
|
|
|
|
|
2000
|
|
336
|
29
|
|
|
29
|
|
191
|
use constant NP_VLAN_TYPE_IPv4 => NP_ETH_TYPE_IPv4; |
|
29
|
|
|
|
|
62
|
|
|
29
|
|
|
|
|
1429
|
|
337
|
29
|
|
|
29
|
|
390
|
use constant NP_VLAN_TYPE_IPv6 => NP_ETH_TYPE_IPv6; |
|
29
|
|
|
|
|
43
|
|
|
29
|
|
|
|
|
1855
|
|
338
|
29
|
|
|
29
|
|
161
|
use constant NP_VLAN_TYPE_VLAN => NP_ETH_TYPE_VLAN; |
|
29
|
|
|
|
|
43
|
|
|
29
|
|
|
|
|
1221
|
|
339
|
|
|
|
|
|
|
|
340
|
29
|
|
|
29
|
|
136
|
use constant NP_ARP_HDR_LEN => 28; |
|
29
|
|
|
|
|
56
|
|
|
29
|
|
|
|
|
2015
|
|
341
|
29
|
|
|
29
|
|
149
|
use constant NP_ARP_HTYPE_ETH => 0x0001; |
|
29
|
|
|
|
|
70
|
|
|
29
|
|
|
|
|
1456
|
|
342
|
29
|
|
|
29
|
|
137
|
use constant NP_ARP_PTYPE_IPv4 => NP_ETH_TYPE_IPv4; |
|
29
|
|
|
|
|
51
|
|
|
29
|
|
|
|
|
1203
|
|
343
|
29
|
|
|
29
|
|
140
|
use constant NP_ARP_HSIZE_ETH => 0x06; |
|
29
|
|
|
|
|
44
|
|
|
29
|
|
|
|
|
1578
|
|
344
|
29
|
|
|
29
|
|
158
|
use constant NP_ARP_PSIZE_IPv4 => 0x04; |
|
29
|
|
|
|
|
67
|
|
|
29
|
|
|
|
|
10947
|
|
345
|
29
|
|
|
29
|
|
170
|
use constant NP_ARP_OPCODE_REQUEST => 0x0001; |
|
29
|
|
|
|
|
171
|
|
|
29
|
|
|
|
|
2334
|
|
346
|
29
|
|
|
29
|
|
142
|
use constant NP_ARP_OPCODE_REPLY => 0x0002; |
|
29
|
|
|
|
|
59
|
|
|
29
|
|
|
|
|
1192
|
|
347
|
29
|
|
|
29
|
|
134
|
use constant NP_ARP_ADDR_BROADCAST => '00:00:00:00:00:00'; |
|
29
|
|
|
|
|
54
|
|
|
29
|
|
|
|
|
1438
|
|
348
|
|
|
|
|
|
|
|
349
|
29
|
|
|
29
|
|
131
|
use constant NP_IPv4_HDR_LEN => 20; |
|
29
|
|
|
|
|
50
|
|
|
29
|
|
|
|
|
1551
|
|
350
|
29
|
|
|
29
|
|
158
|
use constant NP_IPv4_V4 => 4; |
|
29
|
|
|
|
|
53
|
|
|
29
|
|
|
|
|
1374
|
|
351
|
29
|
|
|
29
|
|
147
|
use constant NP_IPv4_PROTOCOL_ICMPv4 => 1; |
|
29
|
|
|
|
|
54
|
|
|
29
|
|
|
|
|
1260
|
|
352
|
29
|
|
|
29
|
|
140
|
use constant NP_IPv4_PROTOCOL_TCP => 6; |
|
29
|
|
|
|
|
57
|
|
|
29
|
|
|
|
|
1208
|
|
353
|
29
|
|
|
29
|
|
143
|
use constant NP_IPv4_PROTOCOL_UDP => 17; |
|
29
|
|
|
|
|
82
|
|
|
29
|
|
|
|
|
1443
|
|
354
|
29
|
|
|
29
|
|
168
|
use constant NP_IPv4_PROTOCOL_IPv6 => 41; |
|
29
|
|
|
|
|
60
|
|
|
29
|
|
|
|
|
1765
|
|
355
|
29
|
|
|
29
|
|
482
|
use constant NP_IPv4_PROTOCOL_OSPF => 0x59; |
|
29
|
|
|
|
|
89
|
|
|
29
|
|
|
|
|
1761
|
|
356
|
29
|
|
|
29
|
|
324
|
use constant NP_IPv4_PROTOCOL_IGMPv4 => 0x02; |
|
29
|
|
|
|
|
61
|
|
|
29
|
|
|
|
|
1477
|
|
357
|
29
|
|
|
29
|
|
405
|
use constant NP_IPv4_MORE_FRAGMENT => 1; |
|
29
|
|
|
|
|
55
|
|
|
29
|
|
|
|
|
11800
|
|
358
|
29
|
|
|
29
|
|
147
|
use constant NP_IPv4_DONT_FRAGMENT => 2; |
|
29
|
|
|
|
|
44
|
|
|
29
|
|
|
|
|
1215
|
|
359
|
29
|
|
|
29
|
|
135
|
use constant NP_IPv4_RESERVED_FRAGMENT => 4; |
|
29
|
|
|
|
|
53
|
|
|
29
|
|
|
|
|
1613
|
|
360
|
|
|
|
|
|
|
|
361
|
29
|
|
|
29
|
|
184
|
use constant NP_IPv6_HDR_LEN => 40; |
|
29
|
|
|
|
|
53
|
|
|
29
|
|
|
|
|
4569
|
|
362
|
29
|
|
|
29
|
|
1568
|
use constant NP_IPv6_V6 => 6; |
|
29
|
|
|
|
|
179
|
|
|
29
|
|
|
|
|
9889
|
|
363
|
29
|
|
|
29
|
|
158
|
use constant NP_IPv6_PROTOCOL_TCP => NP_IPv4_PROTOCOL_TCP(); |
|
29
|
|
|
|
|
1427
|
|
|
29
|
|
|
|
|
10180
|
|
364
|
29
|
|
|
29
|
|
4567
|
use constant NP_IPv6_PROTOCOL_UDP => NP_IPv4_PROTOCOL_UDP(); |
|
29
|
|
|
|
|
4577
|
|
|
29
|
|
|
|
|
7248
|
|
365
|
|
|
|
|
|
|
|
366
|
29
|
|
|
29
|
|
3059
|
use constant NP_PPP_HDR_LEN => 4; |
|
29
|
|
|
|
|
59
|
|
|
29
|
|
|
|
|
10630
|
|
367
|
29
|
|
|
29
|
|
168
|
use constant NP_PPP_PROTOCOL_IPv4 => 0x0021; |
|
29
|
|
|
|
|
1437
|
|
|
29
|
|
|
|
|
1832
|
|
368
|
29
|
|
|
29
|
|
155
|
use constant NP_PPP_PROTOCOL_PPPLCP => 0xc021; |
|
29
|
|
|
|
|
47
|
|
|
29
|
|
|
|
|
1161
|
|
369
|
|
|
|
|
|
|
|
370
|
29
|
|
|
29
|
|
136
|
use constant NP_PPPoE_HDR_LEN => 8; |
|
29
|
|
|
|
|
49
|
|
|
29
|
|
|
|
|
1327
|
|
371
|
29
|
|
|
29
|
|
142
|
use constant NP_PPPoE_PPP_PROTOCOL_IPv4 => NP_PPP_PROTOCOL_IPv4; |
|
29
|
|
|
|
|
48
|
|
|
29
|
|
|
|
|
1373
|
|
372
|
29
|
|
|
29
|
|
142
|
use constant NP_PPPoE_PPP_PROTOCOL_PPPLCP => NP_PPP_PROTOCOL_PPPLCP; |
|
29
|
|
|
|
|
50
|
|
|
29
|
|
|
|
|
1189
|
|
373
|
|
|
|
|
|
|
|
374
|
29
|
|
|
29
|
|
797
|
use constant NP_LLC_HDR_LEN => 8; |
|
29
|
|
|
|
|
46
|
|
|
29
|
|
|
|
|
1205
|
|
375
|
29
|
|
|
29
|
|
220
|
use constant NP_LLC_OUI_CISCO => 0x00000c; |
|
29
|
|
|
|
|
45
|
|
|
29
|
|
|
|
|
1210
|
|
376
|
29
|
|
|
29
|
|
140
|
use constant NP_LLC_PID_CDP => 0x2000; |
|
29
|
|
|
|
|
42
|
|
|
29
|
|
|
|
|
1195
|
|
377
|
29
|
|
|
29
|
|
164
|
use constant NP_LLC_PID_STP => 0x010b; |
|
29
|
|
|
|
|
68
|
|
|
29
|
|
|
|
|
1326
|
|
378
|
29
|
|
|
29
|
|
164
|
use constant NP_LLC_DSAP_SNAP => 0x2a; |
|
29
|
|
|
|
|
65
|
|
|
29
|
|
|
|
|
1578
|
|
379
|
29
|
|
|
29
|
|
225
|
use constant NP_LLC_SSAP_SNAP => NP_LLC_DSAP_SNAP(); |
|
29
|
|
|
|
|
68
|
|
|
29
|
|
|
|
|
1252
|
|
380
|
|
|
|
|
|
|
|
381
|
29
|
|
|
29
|
|
146
|
use constant NP_PPPLCP_HDR_LEN => 8; |
|
29
|
|
|
|
|
47
|
|
|
29
|
|
|
|
|
1947
|
|
382
|
29
|
|
|
29
|
|
149
|
use constant NP_PPPLCP_CODE_ECHO_REQUEST => 0x09; |
|
29
|
|
|
|
|
49
|
|
|
29
|
|
|
|
|
1219
|
|
383
|
29
|
|
|
29
|
|
136
|
use constant NP_PPPLCP_CODE_ECHO_REPLY => 0x0a; |
|
29
|
|
|
|
|
44
|
|
|
29
|
|
|
|
|
1188
|
|
384
|
|
|
|
|
|
|
|
385
|
29
|
|
|
29
|
|
129
|
use constant NP_CDP_HDR_LEN => 4; |
|
29
|
|
|
|
|
46
|
|
|
29
|
|
|
|
|
1212
|
|
386
|
29
|
|
|
29
|
|
132
|
use constant NP_CDP_TYPE_DEVICE_ID => 0x0001; |
|
29
|
|
|
|
|
50
|
|
|
29
|
|
|
|
|
2090
|
|
387
|
29
|
|
|
29
|
|
139
|
use constant NP_CDP_TYPE_ADDRESSES => 0x0002; |
|
29
|
|
|
|
|
54
|
|
|
29
|
|
|
|
|
2000
|
|
388
|
29
|
|
|
29
|
|
143
|
use constant NP_CDP_TYPE_PORT_ID => 0x0003; |
|
29
|
|
|
|
|
40
|
|
|
29
|
|
|
|
|
1286
|
|
389
|
29
|
|
|
29
|
|
126
|
use constant NP_CDP_TYPE_CAPABILITIES => 0x0004; |
|
29
|
|
|
|
|
46
|
|
|
29
|
|
|
|
|
6332
|
|
390
|
29
|
|
|
29
|
|
154
|
use constant NP_CDP_TYPE_SOFTWARE_VERSION => 0x0005; |
|
29
|
|
|
|
|
66
|
|
|
29
|
|
|
|
|
1641
|
|
391
|
29
|
|
|
29
|
|
162
|
use constant NP_CDP_TYPE_PLATFORM => 0x0006; |
|
29
|
|
|
|
|
51
|
|
|
29
|
|
|
|
|
1158
|
|
392
|
29
|
|
|
29
|
|
155
|
use constant NP_CDP_TYPE_UNKNOWN_0007 => 0x0007; |
|
29
|
|
|
|
|
57
|
|
|
29
|
|
|
|
|
1347
|
|
393
|
29
|
|
|
29
|
|
139
|
use constant NP_CDP_TYPE_UNKNOWN_0008 => 0x0008; |
|
29
|
|
|
|
|
45
|
|
|
29
|
|
|
|
|
1571
|
|
394
|
29
|
|
|
29
|
|
169
|
use constant NP_CDP_TYPE_VTP_MANAGEMENT_DOMAIN => 0x0009; |
|
29
|
|
|
|
|
51
|
|
|
29
|
|
|
|
|
1138
|
|
395
|
29
|
|
|
29
|
|
143
|
use constant NP_CDP_TYPE_UNKNOWN_000a => 0x000a; |
|
29
|
|
|
|
|
46
|
|
|
29
|
|
|
|
|
13758
|
|
396
|
29
|
|
|
29
|
|
155
|
use constant NP_CDP_TYPE_DUPLEX => 0x000b; |
|
29
|
|
|
|
|
39
|
|
|
29
|
|
|
|
|
1313
|
|
397
|
29
|
|
|
29
|
|
139
|
use constant NP_CDP_TYPE_UNKNOWN_000c => 0x000c; |
|
29
|
|
|
|
|
61
|
|
|
29
|
|
|
|
|
1744
|
|
398
|
29
|
|
|
29
|
|
166
|
use constant NP_CDP_TYPE_UNKNOWN_000d => 0x000d; |
|
29
|
|
|
|
|
86
|
|
|
29
|
|
|
|
|
1349
|
|
399
|
29
|
|
|
29
|
|
149
|
use constant NP_CDP_TYPE_VOIP_VLAN_REPLY => 0x000e; |
|
29
|
|
|
|
|
61
|
|
|
29
|
|
|
|
|
1806
|
|
400
|
29
|
|
|
29
|
|
154
|
use constant NP_CDP_TYPE_UNKNOWN_000f => 0x000f; |
|
29
|
|
|
|
|
56
|
|
|
29
|
|
|
|
|
1266
|
|
401
|
29
|
|
|
29
|
|
137
|
use constant NP_CDP_TYPE_UNKNOWN_0010 => 0x0010; |
|
29
|
|
|
|
|
44
|
|
|
29
|
|
|
|
|
1455
|
|
402
|
29
|
|
|
29
|
|
147
|
use constant NP_CDP_TYPE_UNKNOWN_0011 => 0x0011; |
|
29
|
|
|
|
|
42
|
|
|
29
|
|
|
|
|
1153
|
|
403
|
29
|
|
|
29
|
|
130
|
use constant NP_CDP_TYPE_TRUST_BITMAP => 0x0012; |
|
29
|
|
|
|
|
44
|
|
|
29
|
|
|
|
|
1103
|
|
404
|
29
|
|
|
29
|
|
132
|
use constant NP_CDP_TYPE_UNTRUSTED_PORT_COS => 0x0013; |
|
29
|
|
|
|
|
40
|
|
|
29
|
|
|
|
|
1373
|
|
405
|
29
|
|
|
29
|
|
147
|
use constant NP_CDP_TYPE_SYSTEM_NAME => 0x0014; |
|
29
|
|
|
|
|
56
|
|
|
29
|
|
|
|
|
1798
|
|
406
|
29
|
|
|
29
|
|
160
|
use constant NP_CDP_TYPE_SYSTEM_OBJECT_ID => 0x0015; |
|
29
|
|
|
|
|
56
|
|
|
29
|
|
|
|
|
1393
|
|
407
|
29
|
|
|
29
|
|
131
|
use constant NP_CDP_TYPE_UNKNOWN_0016 => 0x0016; |
|
29
|
|
|
|
|
50
|
|
|
29
|
|
|
|
|
1168
|
|
408
|
29
|
|
|
29
|
|
133
|
use constant NP_CDP_TYPE_LOCATION => 0x0017; |
|
29
|
|
|
|
|
73
|
|
|
29
|
|
|
|
|
1124
|
|
409
|
29
|
|
|
29
|
|
132
|
use constant NP_CDP_ADDRESS_PROTOCOL_TYPE_NLPID => 0x01; |
|
29
|
|
|
|
|
52
|
|
|
29
|
|
|
|
|
1453
|
|
410
|
29
|
|
|
29
|
|
1021
|
use constant NP_CDP_ADDRESS_PROTOCOL_LENGTH_NLPID => 0x01; |
|
29
|
|
|
|
|
49
|
|
|
29
|
|
|
|
|
1253
|
|
411
|
29
|
|
|
29
|
|
137
|
use constant NP_CDP_ADDRESS_PROTOCOL_IP => 0xcc; |
|
29
|
|
|
|
|
54
|
|
|
29
|
|
|
|
|
1275
|
|
412
|
29
|
|
|
29
|
|
134
|
use constant NP_CDP_ADDRESS_ADDRESS_LENGTH_IP => 0x0004; |
|
29
|
|
|
|
|
52
|
|
|
29
|
|
|
|
|
1207
|
|
413
|
|
|
|
|
|
|
|
414
|
29
|
|
|
29
|
|
142
|
use constant NP_STP_HDR_LEN => 42; |
|
29
|
|
|
|
|
82
|
|
|
29
|
|
|
|
|
1701
|
|
415
|
29
|
|
|
29
|
|
359
|
use constant NP_STP_PROTOCOL_IDENTIFIER_STP => 0x0000; |
|
29
|
|
|
|
|
75
|
|
|
29
|
|
|
|
|
1291
|
|
416
|
|
|
|
|
|
|
|
417
|
29
|
|
|
29
|
|
134
|
use constant NP_OSPF_HDR_LEN => 24; |
|
29
|
|
|
|
|
51
|
|
|
29
|
|
|
|
|
1477
|
|
418
|
29
|
|
|
29
|
|
175
|
use constant NP_OSPF_AUTH_TYPE_NULL => 0x0000; |
|
29
|
|
|
|
|
55
|
|
|
29
|
|
|
|
|
1323
|
|
419
|
|
|
|
|
|
|
|
420
|
29
|
|
|
29
|
|
153
|
use constant NP_IGMPv4_HDR_LEN => 8; |
|
29
|
|
|
|
|
63
|
|
|
29
|
|
|
|
|
1309
|
|
421
|
29
|
|
|
29
|
|
150
|
use constant NP_IGMPv4_v1_TYPE_QUERY => 1; |
|
29
|
|
|
|
|
58
|
|
|
29
|
|
|
|
|
1393
|
|
422
|
29
|
|
|
29
|
|
153
|
use constant NP_IGMPv4_v1_TYPE_REPORT => 2; |
|
29
|
|
|
|
|
61
|
|
|
29
|
|
|
|
|
1147
|
|
423
|
29
|
|
|
29
|
|
143
|
use constant NP_IGMPv4_v2_TYPE_QUERY => 0x11; |
|
29
|
|
|
|
|
48
|
|
|
29
|
|
|
|
|
1643
|
|
424
|
29
|
|
|
29
|
|
232
|
use constant NP_IGMPv4_v2_TYPE_QUERY_v1 => 0x12; |
|
29
|
|
|
|
|
70
|
|
|
29
|
|
|
|
|
1327
|
|
425
|
29
|
|
|
29
|
|
132
|
use constant NP_IGMPv4_v2_TYPE_REPORT => 0x16; |
|
29
|
|
|
|
|
47
|
|
|
29
|
|
|
|
|
2196
|
|
426
|
29
|
|
|
29
|
|
139
|
use constant NP_IGMPv4_v2_TYPE_LEAVE_GROUP => 0x17; |
|
29
|
|
|
|
|
45
|
|
|
29
|
|
|
|
|
1616
|
|
427
|
29
|
|
|
29
|
|
2209
|
use constant NP_IGMPv4_GROUP_ADDRESS_NO_HOSTS => '224.0.0.0'; |
|
29
|
|
|
|
|
54
|
|
|
29
|
|
|
|
|
2256
|
|
428
|
29
|
|
|
29
|
|
139
|
use constant NP_IGMPv4_GROUP_ADDRESS_ALL_HOSTS => '224.0.0.1'; |
|
29
|
|
|
|
|
48
|
|
|
29
|
|
|
|
|
1233
|
|
429
|
29
|
|
|
29
|
|
147
|
use constant NP_IGMPv4_GROUP_ADDRESS_ALL_ROUTERS => '224.0.0.2'; |
|
29
|
|
|
|
|
46
|
|
|
29
|
|
|
|
|
1703
|
|
430
|
|
|
|
|
|
|
|
431
|
29
|
|
|
29
|
|
135
|
use constant NP_TCP_HDR_LEN => 20; |
|
29
|
|
|
|
|
46
|
|
|
29
|
|
|
|
|
1362
|
|
432
|
29
|
|
|
29
|
|
158
|
use constant NP_TCP_FLAG_FIN => 0x01; |
|
29
|
|
|
|
|
65
|
|
|
29
|
|
|
|
|
7525
|
|
433
|
29
|
|
|
29
|
|
160
|
use constant NP_TCP_FLAG_SYN => 0x02; |
|
29
|
|
|
|
|
100
|
|
|
29
|
|
|
|
|
1469
|
|
434
|
29
|
|
|
29
|
|
157
|
use constant NP_TCP_FLAG_RST => 0x04; |
|
29
|
|
|
|
|
49
|
|
|
29
|
|
|
|
|
2076
|
|
435
|
29
|
|
|
29
|
|
140
|
use constant NP_TCP_FLAG_PSH => 0x08; |
|
29
|
|
|
|
|
48
|
|
|
29
|
|
|
|
|
1276
|
|
436
|
29
|
|
|
29
|
|
134
|
use constant NP_TCP_FLAG_ACK => 0x10; |
|
29
|
|
|
|
|
45
|
|
|
29
|
|
|
|
|
1217
|
|
437
|
29
|
|
|
29
|
|
160
|
use constant NP_TCP_FLAG_URG => 0x20; |
|
29
|
|
|
|
|
49
|
|
|
29
|
|
|
|
|
1655
|
|
438
|
29
|
|
|
29
|
|
153
|
use constant NP_TCP_FLAG_ECE => 0x40; |
|
29
|
|
|
|
|
49
|
|
|
29
|
|
|
|
|
1366
|
|
439
|
29
|
|
|
29
|
|
151
|
use constant NP_TCP_FLAG_CWR => 0x80; |
|
29
|
|
|
|
|
43
|
|
|
29
|
|
|
|
|
1478
|
|
440
|
|
|
|
|
|
|
|
441
|
29
|
|
|
29
|
|
168
|
use constant NP_UDP_HDR_LEN => 8; |
|
29
|
|
|
|
|
75
|
|
|
29
|
|
|
|
|
1346
|
|
442
|
|
|
|
|
|
|
|
443
|
29
|
|
|
29
|
|
166
|
use constant NP_ICMPv4_HDR_LEN => 8; |
|
29
|
|
|
|
|
105
|
|
|
29
|
|
|
|
|
1281
|
|
444
|
29
|
|
|
29
|
|
148
|
use constant NP_ICMPv4_CODE_ZERO => 0; |
|
29
|
|
|
|
|
68
|
|
|
29
|
|
|
|
|
1515
|
|
445
|
29
|
|
|
29
|
|
136
|
use constant NP_ICMPv4_TYPE_DESTINATION_UNREACHABLE => 3; |
|
29
|
|
|
|
|
49
|
|
|
29
|
|
|
|
|
1330
|
|
446
|
29
|
|
|
29
|
|
139
|
use constant NP_ICMPv4_CODE_NETWORK => 0; |
|
29
|
|
|
|
|
46
|
|
|
29
|
|
|
|
|
1240
|
|
447
|
29
|
|
|
29
|
|
138
|
use constant NP_ICMPv4_CODE_HOST => 1; |
|
29
|
|
|
|
|
52
|
|
|
29
|
|
|
|
|
1285
|
|
448
|
29
|
|
|
29
|
|
144
|
use constant NP_ICMPv4_CODE_PROTOCOL => 2; |
|
29
|
|
|
|
|
50
|
|
|
29
|
|
|
|
|
1235
|
|
449
|
29
|
|
|
29
|
|
141
|
use constant NP_ICMPv4_CODE_PORT => 3; |
|
29
|
|
|
|
|
58
|
|
|
29
|
|
|
|
|
4035
|
|
450
|
29
|
|
|
29
|
|
152
|
use constant NP_ICMPv4_CODE_FRAGMENTATION_NEEDED => 4; |
|
29
|
|
|
|
|
61
|
|
|
29
|
|
|
|
|
1788
|
|
451
|
29
|
|
|
29
|
|
140
|
use constant NP_ICMPv4_CODE_SOURCE_ROUTE_FAILED => 5; |
|
29
|
|
|
|
|
45
|
|
|
29
|
|
|
|
|
3241
|
|
452
|
29
|
|
|
29
|
|
148
|
use constant NP_ICMPv4_TYPE_TIME_EXCEEDED => 11; |
|
29
|
|
|
|
|
57
|
|
|
29
|
|
|
|
|
1258
|
|
453
|
29
|
|
|
29
|
|
134
|
use constant NP_ICMPv4_CODE_TTL_IN_TRANSIT => 0; |
|
29
|
|
|
|
|
50
|
|
|
29
|
|
|
|
|
1236
|
|
454
|
29
|
|
|
29
|
|
137
|
use constant NP_ICMPv4_CODE_FRAGMENT_REASSEMBLY => 1; |
|
29
|
|
|
|
|
45
|
|
|
29
|
|
|
|
|
1897
|
|
455
|
29
|
|
|
29
|
|
142
|
use constant NP_ICMPv4_TYPE_PARAMETER_PROBLEM => 12; |
|
29
|
|
|
|
|
67
|
|
|
29
|
|
|
|
|
1155
|
|
456
|
29
|
|
|
29
|
|
133
|
use constant NP_ICMPv4_CODE_POINTER => 0; |
|
29
|
|
|
|
|
50
|
|
|
29
|
|
|
|
|
1343
|
|
457
|
29
|
|
|
29
|
|
149
|
use constant NP_ICMPv4_TYPE_SOURCE_QUENCH => 4; |
|
29
|
|
|
|
|
51
|
|
|
29
|
|
|
|
|
1441
|
|
458
|
29
|
|
|
29
|
|
157
|
use constant NP_ICMPv4_TYPE_REDIRECT => 5; |
|
29
|
|
|
|
|
57
|
|
|
29
|
|
|
|
|
1494
|
|
459
|
29
|
|
|
29
|
|
146
|
use constant NP_ICMPv4_CODE_FOR_NETWORK => 0; |
|
29
|
|
|
|
|
49
|
|
|
29
|
|
|
|
|
1481
|
|
460
|
29
|
|
|
29
|
|
143
|
use constant NP_ICMPv4_CODE_FOR_HOST => 1; |
|
29
|
|
|
|
|
50
|
|
|
29
|
|
|
|
|
1191
|
|
461
|
29
|
|
|
29
|
|
162
|
use constant NP_ICMPv4_CODE_FOR_TOS_AND_NETWORK => 2; |
|
29
|
|
|
|
|
59
|
|
|
29
|
|
|
|
|
7477
|
|
462
|
29
|
|
|
29
|
|
150
|
use constant NP_ICMPv4_CODE_FOR_TOS_AND_HOST => 3; |
|
29
|
|
|
|
|
82
|
|
|
29
|
|
|
|
|
1743
|
|
463
|
29
|
|
|
29
|
|
158
|
use constant NP_ICMPv4_TYPE_ECHO_REQUEST => 8; |
|
29
|
|
|
|
|
69
|
|
|
29
|
|
|
|
|
1196
|
|
464
|
29
|
|
|
29
|
|
908
|
use constant NP_ICMPv4_TYPE_ECHO_REPLY => 0; |
|
29
|
|
|
|
|
108
|
|
|
29
|
|
|
|
|
1395
|
|
465
|
29
|
|
|
29
|
|
566
|
use constant NP_ICMPv4_TYPE_TIMESTAMP_REQUEST => 13; |
|
29
|
|
|
|
|
64
|
|
|
29
|
|
|
|
|
2254
|
|
466
|
29
|
|
|
29
|
|
355
|
use constant NP_ICMPv4_TYPE_TIMESTAMP_REPLY => 14; |
|
29
|
|
|
|
|
82
|
|
|
29
|
|
|
|
|
1714
|
|
467
|
29
|
|
|
29
|
|
142
|
use constant NP_ICMPv4_TYPE_INFORMATION_REQUEST => 15; |
|
29
|
|
|
|
|
73
|
|
|
29
|
|
|
|
|
1336
|
|
468
|
29
|
|
|
29
|
|
226
|
use constant NP_ICMPv4_TYPE_INFORMATION_REPLY => 16; |
|
29
|
|
|
|
|
67
|
|
|
29
|
|
|
|
|
1347
|
|
469
|
29
|
|
|
29
|
|
142
|
use constant NP_ICMPv4_TYPE_ADDRESS_MASK_REQUEST => 17; # RFC 950 |
|
29
|
|
|
|
|
50
|
|
|
29
|
|
|
|
|
1227
|
|
470
|
29
|
|
|
29
|
|
146
|
use constant NP_ICMPv4_TYPE_ADDRESS_MASK_REPLY => 18; # RFC 950 |
|
29
|
|
|
|
|
58
|
|
|
29
|
|
|
|
|
3513
|
|
471
|
|
|
|
|
|
|
|
472
|
|
|
|
|
|
|
1; |
473
|
|
|
|
|
|
|
|
474
|
|
|
|
|
|
|
__END__ |