Packet/DescL3.pm untested

filter: Statementstmt 0.0% 0 / 27 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 7 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 37 CC 2 SCAR 11.0
CC
2
Cov
0%
new
6.0
BEGIN
2.0
BEGIN
2.0
CRAP 3.0
1 #
2 # $Id: DescL3.pm,v 1.3.2.3 2006/06/04 13:56:23 gomor Exp $
3 #
4 package Net::Packet::DescL3;
5 use strict;
6 use warnings;
7 use Carp;
8  
9 require Net::Packet::Desc;
10 our @ISA = qw(Net::Packet::Desc);
11 __PACKAGE__->cgBuildIndices;
12  
13 no strict 'vars';
14  
15 require Net::Write::Layer3;
16  
17 sub new {
18 my $self = shift->SUPER::new(@_);
19  
20 confess("@{[(caller(0))[3]]}: you must pass `target' parameter\n")
21 unless $self->[$__target];
22  
23 my $nwrite = Net::Write::Layer3->new(
24 dev => $self->[$__dev],
25 dst => $self->[$__target],
26 );
27 $nwrite->open;
28  
29 $self->[$___io] = $nwrite;
30  
31 $self;
32 }
33  
34 1;
35  
36 __END__