logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

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

Author

       Patrice <GomoR> Auffret

Description

       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.

Name

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

Synopsis

          use Net::Libdnet::Eth;

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

See Also