Net::Write::Layer2 - object for a link layer (layer 2) descriptor
require Net::Write::Layer2; # Usually, you use it to send ARP frames, # that is crafted from ETH layer # Under Windows, to send frames, you MUST craft from layer 2 my $desc = Net::Write::Layer2->new( dev => $networkInterface, ); $desc->open; $desc->send($rawStringToNetwork); $desc->close;
This is the class for creating a layer 2 descriptor.
The string specifying network interface to use.
Under Unix-like systems, this is in this format: \w+\d+ (example: eth0).
Under Windows systems, this is more complex; example: \Device\NPF_{0749A9BC-C665-4C55-A4A7-34AC2FBAB70F}
See Net::Write::Layer for inherited methods.
Patrice <GomoR> Auffret
Copyright (c) 2006, Patrice <GomoR> Auffret
You may distribute this module under the terms of the Artistic license. See Copying file in the source distribution archive.
Net::Packet, Net::RawIP, Net::RawSock
To install Net::Write, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::Write
CPAN shell
perl -MCPAN -e shell install Net::Write
For more information on module installation, please visit the detailed CPAN module installation guide.