Net::Libdnet::Eth(3pm)

Net::Libdnet::Eth3pm

High level api to access libdnet eth_* functions

Usage

   use Net::Libdnet::Eth;
   my $h = Net::Libdnet::Eth->new(device => 'eth0');

Overview

This modules is a higher level abstraction for libdnet eth_* functions.

Methods

new (device => scalar)

Returns an object to eth layer on success, undef otherwise. You MUST give a network interface to use for sending.

get ()

Returns the hardware address associated with used network interface. Returns undef on error.

set (scalar)

Sets the hardware address specified by scalar of used network interface. Returns undef on error.

send (scalar)

Sends the raw data specified by scalar to the network interface. Returns the number of bytes sent on success, undef on error.

Releases

8 releases since Debian 6.0 (Squeeze); the text changed 7 times.

  1. 6.0
  2. 7
  3. 8
  4. 9
  5. 10
  6. 11
  7. 12
  8. 13

Author

Patrice <GomoR> Auffret

From libnet-libdnet-perl 0.990-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.