| 1 | # | ||||||||||
| 2 | # $Id: Layer3.pm 2002 2015-02-15 16:50:35Z gomor $ | ||||||||||
| 3 | # | ||||||||||
| 4 | package Net::Packet::Layer3; | ||||||||||
| 5 | 1 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | 1 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | |||||||||||
| 8 | 1 | require Net::Packet::Layer; | |||||||||
| 9 | 1 | our @ISA = qw(Net::Packet::Layer); | |||||||||
| 10 | 1 | __PACKAGE__->cgBuildIndices; | |||||||||
| 11 | |||||||||||
| 12 | 1 | ▶ | use Net::Packet::Consts qw(:layer); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 13 | |||||||||||
| 14 | 0 | ▶ | sub layer { NP_LAYER_N_3 } | ||||||||
|
Subroutine
layer: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 15 | |||||||||||
| 16 | 0 | ▶ | sub _is { (shift->is eq shift()) ? 1 : 0 } | ||||||||
|
Subroutine
_is: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 17 | 0 | ▶ | sub isIp { my $self = shift; $self->isIpv4 || $self->isIpv6 } | ||||||||
|
Subroutine
isIp: not called CC=2 SCAR=17.9
Pod
documented
Branch: 1 branch
| |||||||||||
| 18 | 0 | ▶ | sub isIpv4 { shift->_is(NP_LAYER_IPv4) } | ||||||||
|
Subroutine
isIpv4: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 19 | 0 | ▶ | sub isIpv6 { shift->_is(NP_LAYER_IPv6) } | ||||||||
|
Subroutine
isIpv6: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 20 | 0 | ▶ | sub isArp { shift->_is(NP_LAYER_ARP) } | ||||||||
|
Subroutine
isArp: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 21 | 0 | ▶ | sub isVlan { shift->_is(NP_LAYER_VLAN) } | ||||||||
|
Subroutine
isVlan: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 22 | |||||||||||
| 23 | 1 | 1; | |||||||||
| 24 | |||||||||||
| 25 | __END__ | ||||||||||