Net::Write::Layer2 - object for a link layer (layer 2) descriptor
use Net::Write::Layer2; my $desc = Net::Write::Layer2->new( dev => 'eth0', ); $desc->open; $desc->send('G'x666); $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}
Object constructor. You MUST pass a valid dev attribute. There is no default value. Returns undef on error.
Open the interface. Returns undef on error.
Send raw data to the network.
Close the descriptor.
Writing junk to loopback interface on BSD systems will not work.
Net::Write::Layer
Patrice <GomoR> Auffret
Copyright (c) 2006-2015, Patrice <GomoR> Auffret
You may distribute this module under the terms of the Artistic license. See LICENSE.Artistic file in the source distribution archive.
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.