Net::F...sement(3pm)

πŸ“¦
version 1.11 Β· 2 versions
, in debian bookworm, debian trixie, ubuntu jammy, ubuntu noble

πŸ’– NAME πŸ’–

Net::Frame::Layer::ICMPv6::NeighborAdvertisement β€” it's the ICMPv6 Neighbor Advertisement type object, bestie. That's the whole vibe. It's a Perl module and it handles exactly one thing and it does it flawlessly, periodt. πŸ¦‹


✨ SYNOPSIS ✨

okay so here's how you actually use it:

use Net::Frame::Layer::ICMPv6::NeighborAdvertisement;

my $layer = Net::Frame::Layer::ICMPv6::NeighborAdvertisement->new(
   flags         => NF_ICMPv6_FLAG_SOLICITED,
   reserved      => 0,
   targetAddress => '::1',
);
$layer->pack;

print 'RAW: '.$layer->dump."\n";

# Read a raw layer
my $layer = Net::Frame::Layer::ICMPv6::NeighborAdvertisement->new(
   raw => $raw,
);

print $layer->print."\n";
print 'PAYLOAD: '.unpack('H*', $layer->payload)."\n"
   if $layer->payload;

Like, you build it, you pack it, you dump it, and if you're on the receiving end you just hand it the raw bytes and it figures everything out for you. iconic behaviour honestly. 🫢


🌸 DESCRIPTION 🌸

This module implements the encoding and decoding of the ICMPv6 Neighbor Advertisement object. Both directions!! Building packets AND reading them. We love a versatile queen. πŸ‘‘

See also Net::Frame::Layer for other attributes and methods, because this layer is not doing all of that alone, iykyk.


πŸ’… ATTRIBUTES πŸ’…

  • flags β€” the ICMPv6 Neighbor Advertisement flags. Head over to CONSTANTS for the details bestie.
  • reserved β€” should be zeroed. Zero it. It said what it said. πŸ™ˆ
  • targetAddress β€” the IPv6 address you want to lookup (for example). That's the one you're asking about.
  • options β€” an arrayref of Net::Frame::Layer::Option objects. Yes, arrayref. Yes, objects. Slay.

The following are inherited attributes β€” go check Net::Frame::Layer for more info:

  • raw
  • payload
  • nextLayer

⭐ METHODS ⭐

  • new
  • new (hash) β€” the object constructor, bb. You can pass attributes and they'll overwrite the defaults. Wanna know the defaults? Look at SYNOPSIS, it's all right there. πŸ’–
  • getOptionsLength β€” returns the length in bytes of options, and returns 0 if there are none. Short and honest. 🌸

The following are inherited methods. Some of them may be overridden in this layer, and some others may not be meaningful in this layer β€” so don't come for them if they're not doing much here, fr fr. See Net::Frame::Layer for more information:

  • layer
  • computeLengths
  • computeChecksums
  • pack
  • unpack
  • encapsulate
  • getLength
  • getPayloadLength
  • print
  • dump

πŸŽ€ CONSTANTS πŸŽ€

No constants here. Nothing. Empty. A whole section with zero content and honestly? Respect the transparency. πŸ’€


πŸ¦‹ SEE ALSO πŸ¦‹

  • Net::Frame::Layer::ICMPv6
  • Net::Frame::Layer

πŸ‘‘ AUTHOR πŸ‘‘

Patrice <GomoR> Auffret. A legend. No cap. 🫢


Copyright (c) 2006-2019, Patrice <GomoR> Auffret

You may distribute this module under the terms of the Artistic license. See LICENSE.Artistic file in the source distribution archive. That's the whole legal vibe, bestie, go read the file. ✨


this has been perl v5.30.0, dated 2019-12-26, from the User Contributed Perl Documentation for Net::F...sement(3pm) β€” mwah, take care of her πŸ’œ