GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  NET::PACKET::DESC (3)

.ds Aq ’

NAME

Net::Packet::Desc - base class for all desc modules

CONTENTS

DESCRIPTION

This is the base class for <B>Net::Packet::DescL2B>, <B>Net::Packet::DescL3B> and <B>Net::Packet::DescL4B> modules.

It just provides those layers with inheritable attributes and methods.

A descriptor is required when you want to send frames over network.

ATTRIBUTES

<B>devB> Network device to use to send frames. Default to use <B>devB> set in default <B>B>$Env<B>B> object.
<B>ipB> Same as above for IP. This is the source IP address to use.
<B>ip6B> Same as above for IPv6. This is the source IPv6 address to use.
<B>macB> Same as above for MAC. This is the source MAC address to use.
<B>gatewayIpB> Same as above, for gateway IP address.
<B>gatewayMacB> Same as above, for gateway MAC address. It is not automatically set here. It is automatically set only under Windows, when using a <B>Net::Packet::DescL3B> object.
<B>targetB> Used to create a <B>Net::Packet::DescL3B> and <B>Net::Packet::DescL4B>. At these layers, one MUST specifiy the target IP address to tell kernel where to send frames.
<B>targetMacB> Used to automatically build layer 2 when using a <B>Net::Packet::DescL3B> object under Windows.
<B>protocolB> This is the transport protocol to use (TCP, UDP, ...). Used in <B>Net::Packet::DescL4B> objects. Default to TCP.
<B>familyB> Same as abose, to tell which network protocol to use (IPv4, IPv6).

METHODS

<B>sendB> (scalar) Send the raw data passed as a parameter.
<B>closeB> Close the descriptor.
<B>isDescL2B>
<B>isDescL3B>
<B>isDescL4B> Returns true if Desc is of specified type, false otherwise.

CONSTANTS

Load them: use Net::Packet::Consts qw(:desc);
<B>NP_DESC_IPPROTO_IPB>
<B>NP_DESC_IPPROTO_IPv6B>
<B>NP_DESC_IPPROTO_RAWB>
<B>NP_DESC_IPPROTO_TCPB>
<B>NP_DESC_IPPROTO_UDPB>
<B>NP_DESC_IPPROTO_ICMPv4B>
<B>NP_DESC_IP_HDRINCLB>
<B>NP_DESC_L2B>
<B>NP_DESC_L3B>
<B>NP_DESC_L4B>

AUTHOR

Patrice <GomoR> Auffret

COPYRIGHT AND LICENSE

Copyright (c) 2004-2009, Patrice <GomoR> Auffret

You may distribute this module under the terms of the Artistic license. See LICENSE.Artistic file in the source distribution archive.

RELATED MODULES

NetPacket, Net::RawIP, Net::RawSock
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 NET::PACKET::DESC (3) 2009-11-09

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.