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

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

πŸ’– Net::F...itation β€” the ICMPv6 Router Solicitation era πŸ’–

okay bestie, so this page is Net::F...itation(3pm) from the User Contributed Perl Documentation, and it's literally all about one little layer object. pull up a chair, we're decoding packets and it's giving main character energy πŸ¦‹


✨ NAME ✨

Net::Frame::Layer::ICMPv6::RouterSolicitation β€” the ICMPv6 Router Solicitation type object. that's her. that's the girl. πŸ‘‘


🌸 SYNOPSIS 🌸

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

use Net::Frame::Layer::ICMPv6::RouterSolicitation;

my $layer = Net::Frame::Layer::ICMPv6::RouterSolicitation->new(
   reserved      => 0,
);
$layer->pack;

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

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

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

so you either build one from scratch with attributes and pack it, or you feed it some raw bytes and it decodes for you. both paths are valid, both paths are iconic πŸ’…


πŸŽ€ DESCRIPTION πŸŽ€

this module implements the encoding and decoding of the ICMPv6 Router Solicitation object. so like, it's the translator between "a real packet on the wire" and "a nice little Perl object you can poke at" πŸ”₯

also, peep Net::Frame::Layer for other attributes and methods β€” that's the parent energy right there.


πŸ¦‹ ATTRIBUTES πŸ¦‹

Refer to RFC 4861 for information on these attributes β€” that's the source of truth, bestie, go read it, iykyk πŸ“–

  • reserved β€” yeah, that one. it's in the RFC, it's reserved, we don't question the reserved. πŸ™ˆ
  • options β€” the options field, homegirl holds the options. ✨

the following ones are inherited attributes, so go see Net::Frame::Layer for the full tea:

  • raw
  • payload
  • nextLayer

πŸ’… METHODS πŸ’…

🌈 new

🌈 new (hash)

object constructor, periodt. you can pass attributes that will overwrite default ones β€” and if you wanna know what the defaults look like, the SYNOPSIS above is showing you exactly that. no guessing required πŸ’–

🌈 getOptionsLength

returns the length in bytes of options. and if there are no options? it returns 0. zero. nada. she's honest like that πŸ“


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 me if one of them is doing nothing in here 😭 go check Net::Frame::Layer for more information:

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

⭐ CONSTANTS ⭐

No constants here.

empty. void. a beautiful blank canvas. we love a minimal moment 🧚


πŸ‘‘ SEE ALSO πŸ‘‘

go be nosy, bestie, these are the neighbors:

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

πŸ’œ AUTHOR πŸ’œ

Patrice <GomoR> Auffret Paolo Vanni Venegas

shoutout to the authors fr fr, they built this and we're just vibing in it 🫢


Copyright (c) 2006-2019, Patrice <GomoR> Auffret Copyright (c) 2009-2019, Paolo Vanni Venegas

you may distribute this module under the terms of the Artistic license. see the LICENSE.Artistic file in the source distribution archive. legal but make it cute, we stay compliant πŸ’–


and that's the whole page, babes! this one shipped with perl v5.30.0 and it's dated 2019-12-26 β€” vintage but still slaying, mwah πŸ’‹βœ¨