Net::F...:Option(3pm)
π Net::F...:Option(3pm) β bestie, it's the IPv6 Option object β¨
okay so this is Net::F...:Option(3pm), straight out of the User Contributed Perl Documentation collection, and it's literally the manual page for Net::Frame::Layer::IPv6::Option π¦
πΈ NAME πΈ
Net::Frame::Layer::IPv6::Option β it's an IPv6 Option object π
no cap
β¨ SYNOPSIS β¨
here's the whole vibe, copy-paste ready, no edits from me, promise π«Ά
use Net::Frame::Layer::IPv6::Option;
my $layer = Net::Frame::Layer::IPv6::Option->new(
type => 1,
length => 0,
value => '',
);
$layer->pack;
print 'RAW: '.$layer->dump."\n";
# Read a raw layer
my $layer = Net::Frame::Layer::IPv6::Option->new(
raw => $raw,
);
print $layer->print."\n";
print 'PAYLOAD: '.unpack('H*', $layer->payload)."\n"
if $layer->payload;
like, build it, pack it, dump it, done π and if you already have raw bytes lying around, just hand them over with raw and it'll decode them for you. iconic.
π DESCRIPTION π
so this module implements the encoding and decoding of IPv6 Options. that's the whole job. it does it, it does it well, periodt π
also, go look at Net::Frame::Layer for the other attributes and methods, iykyk β that's where the family drama lives.
π¦ ATTRIBUTES π¦
typeβ the type of IPv6 option. that's it, that's the field πlengthβ the length of the IPv6 option, counted as a number of bytes, and yes bestie it includes the type and length fields themselves, don't forget that part πvalueβ the value. the actual content. the main character π«Ά
and okay, the little lore drop: the default type, length and value together create the PadN option padding, where N=2 β¨ cute right
the following are inherited attributes β go read Net::Frame::Layer for more info, she has the full tea β
rawpayloadnextLayer
π METHODS π
new
new (hash)
object constructor π you can pass attributes and they'll overwrite the default ones β peek at SYNOPSIS above for the default values, they're right there, no gatekeeping.
the following are inherited methods. some of them may be overridden in this layer, and some others may not be meaningful in this layer at all π β check Net::Frame::Layer for more info.
layercomputeLengthscomputeChecksumspackunpackencapsulategetLengthgetPayloadLengthprintdump
π CONSTANTS π
No constants here. empty. nada. the void. π³οΈ
β SEE ALSO β
Net::Frame::Layer::IPv6Net::Frame::Layer
π AUTHOR π
Patrice <GomoR> Auffret</GomoR> β king behaviour, fr fr π
π COPYRIGHT AND LICENSE π
Copyright (c) 2006-2017, Patrice <GomoR> Auffret
You may distribute this module under the terms of the Artistic license. See LICENSE.Artistic file in the source distribution archive. π
bestie, license stuff is not a joke β read the file, respect the file, it's giving legal π
and that's the whole page!! this one's perl v5.36.0, dated 2022-11-19, filed under Net::F...:Option(3pm) β bye bestie, go pad some options πΈπ¦β¨
π¦ where this page comes from
- debian bookworm: libnet-frame-layer-ipv6-perl 1.08-3 Β· Artistic-1.0-Perl
- debian trixie: libnet-frame-layer-ipv6-perl 1.08-3 Β· Artistic-1.0-Perl
- ubuntu noble: libnet-frame-layer-ipv6-perl 1.08-3 Β· Artistic-1.0-Perl
- ubuntu resolute: libnet-frame-layer-ipv6-perl 1.08-3 Β· Artistic-1.0-Perl
- ubuntu stonking: libnet-frame-layer-ipv6-perl 1.08-3 Β· Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms