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

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

πŸ’– NAME πŸ’–

okay so bestie, welcome to Net::Frame::Layer::ICMPv6::NeighborSolicitation β€” it's the ICMPv6 Neighbor Solicitation type object from the Net::Frame family. yes that's a whole mouthful, we know, but she's iconic and she does exactly one job and she does it slay. πŸ¦‹

(this page lives in the User Contributed Perl Documentation section of the manual, aka 3pm, in case you were wondering where you wandered into πŸ’…)


✨ SYNOPSIS ✨

here's the vibe, copy-paste ready, no notes:

use Net::Frame::Layer::ICMPv6::NeighborSolicitation;

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

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

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

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

like. she builds, she packs, she dumps, she reads raw bytes back in. versatile queen πŸ‘‘


🌸 DESCRIPTION 🌸

this module implements the encoding and decoding of the ICMPv6 Neighbor Solicitation object. that's it, that's the whole assignment, and she ate. πŸ”₯

also go look at Net::Frame::Layer for other attributes and methods β€” that's where the rest of the family lives.


πŸŽ€ ATTRIBUTES πŸŽ€

  • reserved β€” should be zeroed. like, zero. nothing. empty. the void. don't put stuff here bestie, it's reserved for a reason 😭
  • targetAddress β€” an IPv6 address. the whole point of the neighbor solicitation, lowkey the main character here πŸ’«
  • options β€” an arrayref of Net::Frame::Layer::Option objects.

and these next ones are the inherited attributes β€” go read Net::Frame::Layer if you want the full lore:

  • raw
  • payload
  • nextLayer

πŸ’… METHODS πŸ’…

🫢 new

🫢 new (hash)

object constructor, bestie. you can pass attributes in and they'll overwrite the default ones. peep the SYNOPSIS for what the default values look like β€” they're right there, no gatekeeping πŸ’–

🫢 getOptionsLength

returns the length in bytes of options, and it's 0 if there aren't any. simple. clean. we love a one-job method.


the following are the inherited methods. some of them might be overridden in this layer, and some of them might genuinely not mean anything in this layer β€” that's just how it is, no cap. see Net::Frame::Layer for more:

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

⭐ CONSTANTS ⭐

No constants here. that's it. empty. a beautiful blank page. πŸ•ŠοΈ


🌈 SEE ALSO 🌈

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

go read them, iykyk πŸ“š


πŸ‘‘ AUTHOR πŸ‘‘

Patrice <GomoR> Auffret β€” the legend herself. well, himself, but you get the energy. πŸ’œ


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.

fr fr, read the license, it's short and it's your friend 🧚

perl v5.30.0 Β· 2019-12-26 β€” and that's the whole page bestie, mwah, go write some packets πŸ’…βœ¨πŸŽ€