line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# |
2
|
|
|
|
|
|
|
# $Id: Packet.pm 2002 2015-02-15 16:50:35Z gomor $ |
3
|
|
|
|
|
|
|
# |
4
|
|
|
|
|
|
|
package Net::Packet; |
5
|
1
|
|
|
1
|
|
4249
|
use strict; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
30
|
|
6
|
1
|
|
|
1
|
|
4
|
use warnings; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
62
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
require v5.6.1; |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
our $VERSION = '3.28'; |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
require Exporter; |
13
|
|
|
|
|
|
|
our @ISA = qw(Exporter); |
14
|
|
|
|
|
|
|
|
15
|
1
|
|
|
1
|
|
383
|
use Net::Packet::Env qw($Env); |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
use Net::Packet::Utils qw(:all); |
17
|
|
|
|
|
|
|
use Net::Packet::Consts qw(:desc :dump :layer :eth :arp :vlan :null :ipv4 |
18
|
|
|
|
|
|
|
:ipv6 :tcp :udp :icmpv4 :cdp :llc :ppplcp :pppoe :ppp); |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
require Net::Packet::Dump; |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
require Net::Packet::DescL2; |
23
|
|
|
|
|
|
|
require Net::Packet::DescL3; |
24
|
|
|
|
|
|
|
require Net::Packet::DescL4; |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
require Net::Packet::Frame; |
27
|
|
|
|
|
|
|
require Net::Packet::ETH; |
28
|
|
|
|
|
|
|
require Net::Packet::IPv4; |
29
|
|
|
|
|
|
|
require Net::Packet::IPv6; |
30
|
|
|
|
|
|
|
require Net::Packet::VLAN; |
31
|
|
|
|
|
|
|
require Net::Packet::ARP; |
32
|
|
|
|
|
|
|
require Net::Packet::TCP; |
33
|
|
|
|
|
|
|
require Net::Packet::UDP; |
34
|
|
|
|
|
|
|
require Net::Packet::ICMPv4; |
35
|
|
|
|
|
|
|
require Net::Packet::NULL; |
36
|
|
|
|
|
|
|
require Net::Packet::RAW; |
37
|
|
|
|
|
|
|
require Net::Packet::SLL; |
38
|
|
|
|
|
|
|
require Net::Packet::CDP; |
39
|
|
|
|
|
|
|
require Net::Packet::CDP::Address; |
40
|
|
|
|
|
|
|
require Net::Packet::CDP::TypeDeviceId; |
41
|
|
|
|
|
|
|
require Net::Packet::CDP::TypeAddresses; |
42
|
|
|
|
|
|
|
require Net::Packet::CDP::TypeCapabilities; |
43
|
|
|
|
|
|
|
require Net::Packet::CDP::TypePortId; |
44
|
|
|
|
|
|
|
require Net::Packet::CDP::TypeSoftwareVersion; |
45
|
|
|
|
|
|
|
require Net::Packet::LLC; |
46
|
|
|
|
|
|
|
require Net::Packet::PPPLCP; |
47
|
|
|
|
|
|
|
require Net::Packet::PPPoE; |
48
|
|
|
|
|
|
|
require Net::Packet::PPP; |
49
|
|
|
|
|
|
|
require Net::Packet::STP; |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
our @EXPORT = ( |
52
|
|
|
|
|
|
|
@Net::Packet::Env::EXPORT_OK, |
53
|
|
|
|
|
|
|
@Net::Packet::Utils::EXPORT_OK, |
54
|
|
|
|
|
|
|
@Net::Packet::Consts::EXPORT_OK, |
55
|
|
|
|
|
|
|
); |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
1; |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
__END__ |