line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# |
2
|
|
|
|
|
|
|
# $Id: Constants.pm 1640 2013-03-28 17:58:27Z VinsWorldcom $ |
3
|
|
|
|
|
|
|
# |
4
|
|
|
|
|
|
|
package Net::Frame::Layer::CDP::Constants; |
5
|
19
|
|
|
19
|
|
111
|
use strict; use warnings; |
|
19
|
|
|
19
|
|
38
|
|
|
19
|
|
|
|
|
705
|
|
|
19
|
|
|
|
|
104
|
|
|
19
|
|
|
|
|
35
|
|
|
19
|
|
|
|
|
611
|
|
6
|
|
|
|
|
|
|
|
7
|
19
|
|
|
19
|
|
115
|
use Exporter; |
|
19
|
|
|
|
|
38
|
|
|
19
|
|
|
|
|
2608
|
|
8
|
|
|
|
|
|
|
our @ISA = qw(Net::Frame::Layer Exporter); |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
our %EXPORT_TAGS = ( |
11
|
|
|
|
|
|
|
consts => [qw( |
12
|
|
|
|
|
|
|
NF_CDP_TYPE_DEVICE_ID |
13
|
|
|
|
|
|
|
NF_CDP_TYPE_ADDRESSES |
14
|
|
|
|
|
|
|
NF_CDP_TYPE_PORT_ID |
15
|
|
|
|
|
|
|
NF_CDP_TYPE_CAPABILITIES |
16
|
|
|
|
|
|
|
NF_CDP_TYPE_SOFTWARE_VERSION |
17
|
|
|
|
|
|
|
NF_CDP_TYPE_PLATFORM |
18
|
|
|
|
|
|
|
NF_CDP_TYPE_IPNET_PREFIX |
19
|
|
|
|
|
|
|
NF_CDP_TYPE_PROTOCOL_HELLO |
20
|
|
|
|
|
|
|
NF_CDP_TYPE_VTP_DOMAIN |
21
|
|
|
|
|
|
|
NF_CDP_TYPE_NATIVE_VLAN |
22
|
|
|
|
|
|
|
NF_CDP_TYPE_DUPLEX |
23
|
|
|
|
|
|
|
NF_CDP_TYPE_UNKNOWN_000c |
24
|
|
|
|
|
|
|
NF_CDP_TYPE_UNKNOWN_000d |
25
|
|
|
|
|
|
|
NF_CDP_TYPE_VOIP_VLAN_REPLY |
26
|
|
|
|
|
|
|
NF_CDP_TYPE_VOIP_VLAN_QUERY |
27
|
|
|
|
|
|
|
NF_CDP_TYPE_POWER |
28
|
|
|
|
|
|
|
NF_CDP_TYPE_MTU |
29
|
|
|
|
|
|
|
NF_CDP_TYPE_TRUST_BITMAP |
30
|
|
|
|
|
|
|
NF_CDP_TYPE_UNTRUSTED_COS |
31
|
|
|
|
|
|
|
NF_CDP_TYPE_SYSTEM_NAME |
32
|
|
|
|
|
|
|
NF_CDP_TYPE_SYSTEM_OID |
33
|
|
|
|
|
|
|
NF_CDP_TYPE_MANAGEMENT_ADDR |
34
|
|
|
|
|
|
|
NF_CDP_TYPE_LOCATION |
35
|
|
|
|
|
|
|
NF_CDP_TYPE_EXT_PORT_ID |
36
|
|
|
|
|
|
|
NF_CDP_TYPE_POWER_REQUESTED |
37
|
|
|
|
|
|
|
NF_CDP_TYPE_POWER_AVAILABLE |
38
|
|
|
|
|
|
|
NF_CDP_TYPE_PORT_UNIDIR |
39
|
|
|
|
|
|
|
NF_CDP_TYPE_NRGYZ |
40
|
|
|
|
|
|
|
NF_CDP_TYPE_SPARE_POE |
41
|
|
|
|
|
|
|
)], |
42
|
|
|
|
|
|
|
); |
43
|
|
|
|
|
|
|
our @EXPORT_OK = ( |
44
|
|
|
|
|
|
|
@{$EXPORT_TAGS{consts}}, |
45
|
|
|
|
|
|
|
); |
46
|
|
|
|
|
|
|
|
47
|
19
|
|
|
19
|
|
114
|
use constant NF_CDP_TYPE_DEVICE_ID => 0x0001; |
|
19
|
|
|
|
|
34
|
|
|
19
|
|
|
|
|
1283
|
|
48
|
19
|
|
|
19
|
|
132
|
use constant NF_CDP_TYPE_ADDRESSES => 0x0002; |
|
19
|
|
|
|
|
49
|
|
|
19
|
|
|
|
|
993
|
|
49
|
19
|
|
|
19
|
|
91
|
use constant NF_CDP_TYPE_PORT_ID => 0x0003; |
|
19
|
|
|
|
|
36
|
|
|
19
|
|
|
|
|
1080
|
|
50
|
19
|
|
|
19
|
|
97
|
use constant NF_CDP_TYPE_CAPABILITIES => 0x0004; |
|
19
|
|
|
|
|
29
|
|
|
19
|
|
|
|
|
864
|
|
51
|
19
|
|
|
19
|
|
90
|
use constant NF_CDP_TYPE_SOFTWARE_VERSION => 0x0005; |
|
19
|
|
|
|
|
33
|
|
|
19
|
|
|
|
|
966
|
|
52
|
19
|
|
|
19
|
|
92
|
use constant NF_CDP_TYPE_PLATFORM => 0x0006; |
|
19
|
|
|
|
|
36
|
|
|
19
|
|
|
|
|
1082
|
|
53
|
19
|
|
|
19
|
|
97
|
use constant NF_CDP_TYPE_IPNET_PREFIX => 0x0007; |
|
19
|
|
|
|
|
31
|
|
|
19
|
|
|
|
|
866
|
|
54
|
19
|
|
|
19
|
|
95
|
use constant NF_CDP_TYPE_PROTOCOL_HELLO => 0x0008; |
|
19
|
|
|
|
|
29
|
|
|
19
|
|
|
|
|
825
|
|
55
|
19
|
|
|
19
|
|
88
|
use constant NF_CDP_TYPE_VTP_DOMAIN => 0x0009; |
|
19
|
|
|
|
|
36
|
|
|
19
|
|
|
|
|
832
|
|
56
|
19
|
|
|
19
|
|
105
|
use constant NF_CDP_TYPE_NATIVE_VLAN => 0x000a; |
|
19
|
|
|
|
|
36
|
|
|
19
|
|
|
|
|
791
|
|
57
|
19
|
|
|
19
|
|
101
|
use constant NF_CDP_TYPE_DUPLEX => 0x000b; |
|
19
|
|
|
|
|
53
|
|
|
19
|
|
|
|
|
846
|
|
58
|
19
|
|
|
19
|
|
92
|
use constant NF_CDP_TYPE_UNKNOWN_000c => 0x000c; |
|
19
|
|
|
|
|
33
|
|
|
19
|
|
|
|
|
796
|
|
59
|
19
|
|
|
19
|
|
85
|
use constant NF_CDP_TYPE_UNKNOWN_000d => 0x000d; |
|
19
|
|
|
|
|
30
|
|
|
19
|
|
|
|
|
777
|
|
60
|
19
|
|
|
19
|
|
86
|
use constant NF_CDP_TYPE_VOIP_VLAN_REPLY => 0x000e; |
|
19
|
|
|
|
|
42
|
|
|
19
|
|
|
|
|
2005
|
|
61
|
19
|
|
|
19
|
|
84
|
use constant NF_CDP_TYPE_VOIP_VLAN_QUERY => 0x000f; |
|
19
|
|
|
|
|
32
|
|
|
19
|
|
|
|
|
762
|
|
62
|
19
|
|
|
19
|
|
99
|
use constant NF_CDP_TYPE_POWER => 0x0010; |
|
19
|
|
|
|
|
33
|
|
|
19
|
|
|
|
|
825
|
|
63
|
19
|
|
|
19
|
|
115
|
use constant NF_CDP_TYPE_MTU => 0x0011; |
|
19
|
|
|
|
|
1508
|
|
|
19
|
|
|
|
|
828
|
|
64
|
19
|
|
|
19
|
|
85
|
use constant NF_CDP_TYPE_TRUST_BITMAP => 0x0012; |
|
19
|
|
|
|
|
28
|
|
|
19
|
|
|
|
|
778
|
|
65
|
19
|
|
|
19
|
|
84
|
use constant NF_CDP_TYPE_UNTRUSTED_COS => 0x0013; |
|
19
|
|
|
|
|
33
|
|
|
19
|
|
|
|
|
733
|
|
66
|
19
|
|
|
19
|
|
88
|
use constant NF_CDP_TYPE_SYSTEM_NAME => 0x0014; |
|
19
|
|
|
|
|
29
|
|
|
19
|
|
|
|
|
2211
|
|
67
|
19
|
|
|
19
|
|
83
|
use constant NF_CDP_TYPE_SYSTEM_OID => 0x0015; |
|
19
|
|
|
|
|
1205
|
|
|
19
|
|
|
|
|
767
|
|
68
|
19
|
|
|
19
|
|
109
|
use constant NF_CDP_TYPE_MANAGEMENT_ADDR => 0x0016; |
|
19
|
|
|
|
|
28
|
|
|
19
|
|
|
|
|
2002
|
|
69
|
19
|
|
|
19
|
|
1356
|
use constant NF_CDP_TYPE_LOCATION => 0x0017; |
|
19
|
|
|
|
|
1360
|
|
|
19
|
|
|
|
|
4810
|
|
70
|
19
|
|
|
19
|
|
1906
|
use constant NF_CDP_TYPE_EXT_PORT_ID => 0x0018; |
|
19
|
|
|
|
|
30
|
|
|
19
|
|
|
|
|
6029
|
|
71
|
19
|
|
|
19
|
|
236
|
use constant NF_CDP_TYPE_POWER_REQUESTED => 0x0019; |
|
19
|
|
|
|
|
3004
|
|
|
19
|
|
|
|
|
2082
|
|
72
|
19
|
|
|
19
|
|
106
|
use constant NF_CDP_TYPE_POWER_AVAILABLE => 0x001a; |
|
19
|
|
|
|
|
36
|
|
|
19
|
|
|
|
|
791
|
|
73
|
19
|
|
|
19
|
|
86
|
use constant NF_CDP_TYPE_PORT_UNIDIR => 0x001b; |
|
19
|
|
|
|
|
21
|
|
|
19
|
|
|
|
|
788
|
|
74
|
19
|
|
|
19
|
|
97
|
use constant NF_CDP_TYPE_NRGYZ => 0x001d; |
|
19
|
|
|
|
|
27
|
|
|
19
|
|
|
|
|
6104
|
|
75
|
19
|
|
|
19
|
|
280
|
use constant NF_CDP_TYPE_SPARE_POE => 0x001f; |
|
19
|
|
|
|
|
37
|
|
|
19
|
|
|
|
|
1412
|
|
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
1; |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
__END__ |