Packet/Layer2.pm untested

filter: Statementstmt 0.0% 0 / 21 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 10 Podpod 0.0% 0 / 6 totaltotal 0.0% 0 / 39 CC 2 SCAR 10.0
CC
2
Cov
0%
_is
6.0
layer
2.0
isEth
2.0
CRAP 2.7
1 #
2 # $Id: Layer2.pm,v 1.2.2.2 2006/05/25 12:18:19 gomor Exp $
3 #
4 package Net::Packet::Layer2;
5 use strict;
6 use warnings;
7  
8 require Net::Packet::Layer;
9 our @ISA = qw(Net::Packet::Layer);
10 __PACKAGE__->cgBuildIndices;
11  
12 use Net::Packet::Consts qw(:layer);
13  
14 sub layer { NP_LAYER_N_2 }
15  
16 sub _is { (shift->is eq shift()) ? 1 : 0 }
17 sub isEth { shift->_is(NP_LAYER_ETH) }
18 sub isNull { shift->_is(NP_LAYER_NULL) }
19 sub isRaw { shift->_is(NP_LAYER_RAW) }
20 sub isSll { shift->_is(NP_LAYER_SLL) }
21  
22 1;
23  
24 __END__