Net::F...itation(3pm)
π 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:
rawpayloadnextLayer
π 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:
layercomputeLengthscomputeChecksumspackunpackencapsulategetLengthgetPayloadLengthprintdump
β 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::ICMPv6Net::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 AND LICENSE πΈ
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 πβ¨
π¦ where this page comes from
- debian bookworm: libnet-frame-layer-icmpv6-perl 1.11-1 Β· Artistic-1.0-Perl
- debian trixie: libnet-frame-layer-icmpv6-perl 1.11-1 Β· Artistic-1.0-Perl
- ubuntu jammy: libnet-frame-layer-icmpv6-perl 1.11-1 Β· Artistic-1.0-Perl
- ubuntu noble: libnet-frame-layer-icmpv6-perl 1.11-1 Β· Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms