| 1 | # | ||
| 2 | # $Id: DescL2.pm 2002 2015-02-15 16:50:35Z gomor $ | ||
| 3 | # | ||
| 4 | package Net::Packet::DescL2; | ||
| 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 | require Net::Packet::Desc; | ||
| 9 | our @ISA = qw(Net::Packet::Desc); | ||
| 10 | __PACKAGE__->cgBuildIndices; | ||
| 11 | |||
| 12 | 1 | ▶ | no strict 'vars'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 13 | |||
| 14 | require Net::Write::Layer2; | ||
| 15 | |||
| 16 | 0 | ▶ | sub new { |
|
Subroutine
new: not called CC=1 SCAR=6.9
| |||
| 17 | 0 | my $self = shift->SUPER::new(@_); | |
| 18 | |||
| 19 | 0 | my $nwrite = Net::Write::Layer2->new( | |
| 20 | dev => $self->[$__dev], | ||
| 21 | ); | ||
| 22 | 0 | $nwrite->open; | |
| 23 | |||
| 24 | 0 | $self->[$___io] = $nwrite; | |
| 25 | |||
| 26 | 0 | $self; | |
| 27 | } | ||
| 28 | |||
| 29 | 1; | ||
| 30 | |||
| 31 | __END__ | ||