⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 descl2.pm

📁 SinFP是一种新的识别对方计算机操作系统类型的工具
💻 PM
字号:
## $Id: DescL2.pm,v 1.3.2.2 2006/10/29 14:26:05 gomor Exp $#package Net::Packet::DescL2;use strict;use warnings;require Net::Packet::Desc;our @ISA = qw(Net::Packet::Desc);__PACKAGE__->cgBuildIndices;no strict 'vars';require Net::Write::Layer2;sub new {   my $self = shift->SUPER::new(@_);   my $nwrite = Net::Write::Layer2->new(      dev => $self->[$__dev],   );   $nwrite->open;   $self->[$___io] = $nwrite;   $self;}1;__END__   =head1 NAMENet::Packet::DescL2 - object for a link layer (layer 2) descriptor=head1 SYNOPSIS   require Net::Packet::DescL2;   # Usually, you use it to send ARP frames, that is crafted from ETH layer   my $d2 = Net::Packet::DescL2->new(      dev => 'eth0',   );   $d2->send($rawStringToNetwork);=head1 DESCRIPTIONSee also B<Net::Packet::Desc> for other attributes and methods.=head1 METHODS=over 4=item B<new>Create the object, using default B<$Env> object values for B<dev>, B<ip>, B<ip6> and B<mac> (see B<Net::Packet::Env>). When the object is created, the B<$Env> global object has its B<desc> attributes set to it. You can avoid this behaviour by setting B<noDescAutoSet> in B<$Env> object (see B<Net::Packet::Env>).Default values for attributes:dev: $Env->devip:  $Env->ipip6: $Env->ip6mac: $Env->mac=back=head1 AUTHOR   Patrice E<lt>GomoRE<gt> Auffret=head1 COPYRIGHT AND LICENSECopyright (c) 2004-2006, Patrice E<lt>GomoRE<gt> Auffret      You may distribute this module under the terms of the Artistic license.See LICENSE.Artistic file in the source distribution archive.=head1 RELATED MODULES L<NetPacket>, L<Net::RawIP>, L<Net::RawSock>=cut

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -