Net::F...:Option(3pm)
π 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:
rawpayloadnextLayer
π 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:
layercomputeLengthscomputeChecksumspackunpackencapsulategetLengthgetPayloadLengthprintdump
π CONSTANTS π
No constants here. literally none. zero. the void. not a single one. π
π SEE ALSO π
go be nosy, bestie:
Net::Frame::Layer::ICMPv6Net::Frame::Layer
π«Ά AUTHOR π«Ά
Patrice <GomoR> Auffret
π COPYRIGHT AND LICENSE π
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 β¨ππ
π¦ 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