DOKK / manpages / debian 12 / libnet-libdnet-perl / Net::Libdnet::Eth.3pm.en
Net::Libdnet::Eth(3pm) User Contributed Perl Documentation Net::Libdnet::Eth(3pm)

Net::Libdnet::Eth - high level API to access libdnet eth_* functions

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

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

Returns an object to eth layer on success, undef otherwise. You MUST give a network interface to use for sending.
Returns the hardware address associated with used network interface. Returns undef on error.
Sets the hardware address specified by scalar of used network interface. Returns undef on error.
Sends the raw data specified by scalar to the network interface. Returns the number of bytes sent on success, undef on error.

Patrice <GomoR> Auffret

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

Copyright (c) 2008-2012, Patrice <GomoR> Auffret

2022-10-19 perl v5.36.0