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

📄 raw.pm

📁 SinFP是一种新的识别对方计算机操作系统类型的工具
💻 PM
字号:
## $Id: RAW.pm,v 1.2.2.1 2006/05/01 17:23:33 gomor Exp $#package Net::Packet::RAW;use strict;use warnings;require Net::Packet::Layer2;our @ISA = qw(Net::Packet::Layer2);__PACKAGE__->cgBuildIndices;use Net::Packet::Consts qw(:layer);no strict 'vars';sub pack { shift->[$__raw] = '' }sub unpack {   my $self = shift;   my $payload = $self->SUPER::unpack('a*', $self->[$__raw])      or return undef;   $self->[$__payload] = $payload;   1;}sub encapsulate { NP_LAYER_UNKNOWN }1;__END__=head1 NAMENet::Packet::RAW - empty layer 2 object=head1 SYNOPSIS     # Usually, you do not use this module directly   use Net::Packet::RAW;   #燘uild layer to inject to network   my $raw1 = Net::Packet::RAW->new;   # Decode from network to create the object   # Usually, you do not use this, it is used by Net::Packet::Frame   my $raw2 = Net::Packet::RAW->new(raw => $rawFromNetwork);=head1 DESCRIPTIONThis modules implements the encoding and decoding of the raw layer 2. Because of the nature of this layer, it is not possible to know by asking it what the upper layer type is. We must do a special hack to detect it (done in B<Net::Packet::Frame>).See also B<Net::Packet::Layer> and B<Net::Packet::Layer2> for other attributes and methods.=head1 METHODS=over 4=item B<new>Object constructor. No default values, since no attributes.=item B<pack>Packs all attributes into a raw format, in order to inject to network. Returns 1 on success, undef otherwise.=item B<unpack>Unpacks raw data from network and stores attributes into the object. Returns 1 on success, undef otherwise.=back=head1 AUTHORPatrice E<lt>GomoRE<gt> Auffret=head1 COPYRIGHT AND LICENSECopyright (c) 2004-2006, Patrice E<lt>GomoRE<gt> AuffretYou may distribute this module under the terms of the Artistic license.See LICENSE.Artistic file in the source distribution archive.=head1 RELATED MODULESL<NetPacket>, L<Net::RawIP>, L<Net::RawSock>=cut

⌨️ 快捷键说明

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