Net::Packet::Desc - base class for all desc modules
This is the base class for Net::Packet::DescL2, Net::Packet::DescL3 and Net::Packet::DescL4 modules.
It just provides those layers with inheritable attributes and methods.
A descriptor is required when you want to send frames over network.
Network device to use to send frames. Default to use dev set in default $Env object.
Same as above for IP. This is the source IP address to use.
Same as above for IPv6. This is the source IPv6 address to use.
Same as above for MAC. This is the source MAC address to use.
Same as above, for gateway IP address.
Same as above, for gateway MAC address. It is not automatically set here. It is automatically set only under Windows, when using a Net::Packet::DescL3 object.
Used to create a Net::Packet::DescL3 and Net::Packet::DescL4. At these layers, one MUST specifiy the target IP address to tell kernel where to send frames.
Used to automatically build layer 2 when using a Net::Packet::DescL3 object under Windows.
This is the transport protocol to use (TCP, UDP, ...). Used in Net::Packet::DescL4 objects. Default to TCP.
Same as abose, to tell which network protocol to use (IPv4, IPv6).
Send the raw data passed as a parameter.
Close the descriptor.
Returns true if Desc is of specified type, false otherwise.
Load them: use Net::Packet::Consts qw(:desc);
Patrice <GomoR> Auffret
Copyright (c) 2004-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.