Patrice Auffret > Net-Packet-2.01 > Net::Packet::DescL2

Download:
Net-Packet-2.01.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  0
View Bugs
Report a bug
Source   Latest Release: Net-Packet-2.22

NAME ^

Net::Packet::DescL2 - object for a link layer (layer 2) descriptor

SYNOPSIS ^

   use Net::Packet::DescL2;

   # Usually, you use it to send ARP frames, that is crafted from ETH layer
   my $d2 = Net::Packet::DescL2->new;

   $d2->send($rawStringToNetwork);

DESCRIPTION ^

See also Net::Packet::Desc for other attributes and methods.

METHODS ^

new

Create the object, using default $Net::Packet::Env object to choose which device to use (see Net::Packet::Env). When the object is created, the $Net::Packet::Env object as its desc attributes set to it. Use noEnvSet to avoid that.

AUTHOR ^

Patrice <GomoR> Auffret

COPYRIGHT AND LICENSE ^

Copyright (c) 2004-2005, Patrice <GomoR> Auffret

You may distribute this module under the terms of the Artistic license. See Copying file in the source distribution archive.

RELATED MODULES ^

NetPacket, Net::RawIP, Net::RawSock