Net::L...et::Eth(3pm)

πŸ“¦
version 0.990 Β· 5 versions
, in debian trixie, ubuntu resolute

✨ NAME ✨

okay so this whole page is about Net::Libdnet::Eth(3pm) β€” the high level API to access libdnet eth_* functions. that's it, that's the name, we love a concise queen πŸ’…


🌸 SYNOPSIS 🌸

the whole vibe in four lines, no cap:

use Net::Libdnet::Eth;

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

πŸ¦‹ DESCRIPTION πŸ¦‹

this module is a higher level abstraction for the libdnet eth_* functions. like, it's giving "we did the fiddly low-level part so you don't have to" energy. slay. 🫢


πŸŽ€ METHODS πŸŽ€

  • new (device => scalar) β€” returns an object to the eth layer on success, and undef otherwise. and listen bestie: you MUST give it a network interface to use for sending. no interface, no sendies. periodt.
  • get () β€” returns the hardware address associated with the network interface you're using. returns undef on error. πŸ“
  • set (scalar) β€” sets the hardware address of the network interface you're using, to the address specified by scalar. 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, and undef on error. it's giving "packets out, bytes counted" πŸ’–
ngl, every single one of these has an undef failure mode, so like… check your return values, bestie. that's the vibe check. 🫢

πŸ‘‘ AUTHOR πŸ‘‘

Patrice <GomoR> Auffret


you may distribute this module under the terms of the BSD license. see the LICENSE file in the source distribution archive. iykyk, read your licenses. πŸ“œ

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


and that's the whole page, bestie!! 🌈 this lil doc came from perl v5.40.1, dated 2025-03-01, and it's the manual page for Net::Libdnet::Eth(3pm) β€” go forth and send some raw data, you main character πŸ§šπŸ’…

πŸ“¦ where this page comes from