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

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

πŸ’– NAME πŸ’–

okay bestie, so Net::Frame::Layer::ICMPv6::Option is an ICMPv6 Option object β€” that's it, that's the whole thing, she's a lil layer that handles ICMPv6 options and she does it flawlessly ✨

(the manual page calls herself Net::F...:Option(3pm), like the truncated girly she is, but we know her real name πŸŽ€)


πŸ¦‹ SYNOPSIS πŸ¦‹

here's the vibe, copy-paste ready:

use Net::Frame::Layer::ICMPv6::Option;

my $layer = Net::Frame::Layer::ICMPv6::Option->new(
   type   => 0,
   length => 0,
   value  => '',
);
$layer->pack;

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

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

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

like… build her, pack her, dump her, done. or flip it and feed her a raw blob and read the layers right back out. iconic behavior honestly πŸ’…


🌸 DESCRIPTION 🌸

so this module is the one doing all the encoding and decoding of ICMPv6 Options. all of it. the whole thing. no cap 🫢

also like, peep Net::Frame::Layer for other attributes and methods, because she inherits a LOT and you're gonna wanna know what you're working with πŸ’–


✨ ATTRIBUTES ✨

  • type β€” the type of ICMPv6 option. that's her whole personality πŸŽ€
  • length β€” the length of the ICMPv6 option, counted in a number of bytes, and yes it includes the type and length fields themselves. do not forget that part, bestie, she's counting herself πŸ’€
  • value β€” the value. the actual goods πŸ“

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

  • raw
  • payload
  • nextLayer

πŸ’… METHODS πŸ’…

new

new (hash)

object constructor, she's the moment, she's the main character πŸ‘‘ you can pass attributes and they'll overwrite the default ones. check SYNOPSIS above for the default values, i got you ✨

the following are inherited methods. some of them might get overridden in this layer, and some of them lowkey might not even mean anything in this layer, so… iykyk. see Net::Frame::Layer for more:

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

πŸŽ€ CONSTANTS πŸŽ€

No constants here. literally none. zero. the void. not a single one. 😭

🌈 SEE ALSO 🌈

go be nosy, bestie:

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

🫢 AUTHOR 🫢

Patrice <GomoR> Auffret


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.


okay that's the whole page, you ate that πŸ’– this lil doc was served up by perl v5.30.0, dated 2019-12-26, and yes the footer still says Net::F...:Option(3pm) because she refuses to use her full name in the footer. mystery queen. slay βœ¨πŸŽ€πŸ’