Net::Packet::DescL2 - object for a link layer (layer 2) descriptor
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);
See also Net::Packet::Desc for other attributes and methods.
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.
Patrice <GomoR> Auffret
Copyright (c) 2004-2006, Patrice <GomoR> Auffret
You may distribute this module under the terms of the Artistic license. See LICENSE.Artistic file in the source distribution archive.
NetPacket, Net::RawIP, Net::RawSock
To install Net::Packet, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::Packet
CPAN shell
perl -MCPAN -e shell install Net::Packet
For more information on module installation, please visit the detailed CPAN module installation guide.