Packet/DescL2.pm untested

filter: Statementstmt 0.0% 0 / 23 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 6 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 30 CC 1 SCAR 6.9
CC
1
Cov
0%
new
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 #
2 # $Id: DescL2.pm,v 1.3.2.1 2006/04/25 21:39:52 gomor Exp $
3 #
4 package Net::Packet::DescL2;
5 use strict;
6 use warnings;
7  
8 require Net::Packet::Desc;
9 our @ISA = qw(Net::Packet::Desc);
10 __PACKAGE__->cgBuildIndices;
11  
12 no strict 'vars';
13  
14 require Net::Write::Layer2;
15  
16 sub new {
17 my $self = shift->SUPER::new(@_);
18  
19 my $nwrite = Net::Write::Layer2->new(
20 dev => $self->[$__dev],
21 );
22 $nwrite->open;
23  
24 $self->[$___io] = $nwrite;
25  
26 $self;
27 }
28  
29 1;
30  
31 __END__