Net::Packet::DescL3 - object for a network layer (layer 3) descriptor


Net-Packet documentation  | view source Contained in the Net-Packet distribution.

Index


NAME

Top

Net::Packet::DescL3 - object for a network layer (layer 3) descriptor

SYNOPSIS

Top

   require Net::Packet::DescL3;

   # Usually, you use it to send IPv4 frames
   my $d3 = Net::Packet::DescL3->new(
      dev    => 'eth0',
      target => '192.168.0.1',
   );

   $d3->send($rawStringToNetwork);

DESCRIPTION

Top

See also Net::Packet::Desc for other attributes and methods.

ATTRIBUTES

Top

target

IPv4 address of the target host. You must set it to be able to send frames.

METHODS

Top

new

Create the object, using default $Env object values for dev, ip, ip6 and mac (see Net::Packet::Env). When the object is created, the $Env global object has its desc attributes set to it. You can avoid this behaviour by setting noDescAutoSet in $Env object (see Net::Packet::Env).

Default values for attributes:

dev: $Env->dev

ip: $Env->ip

ip6: $Env->ip6

mac: $Env->mac

AUTHOR

Top

Patrice <GomoR> Auffret

COPYRIGHT AND LICENSE

Top

RELATED MODULES

Top


Net-Packet documentation  | view source Contained in the Net-Packet distribution.