NAME
Net::Write::Layer2 - object for a link layer (layer 2) descriptor
SYNOPSIS
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;
DESCRIPTION
This is the class for creating a layer 2 descriptor.
ATTRIBUTES
- dev
-
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}
METHODS
See Net::Write::Layer for inherited methods.
AUTHOR
Patrice <GomoR> Auffret
COPYRIGHT AND LICENSE
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.