Net::F...nation(3pm)
π Net::F...nation β Net::Frame::Layer::IPv6::Destination π
okay bestie, this page lives in the User Contributed Perl Documentation corner of the manual universe, filed under Net::F...nation(3pm). yes the name is truncated, no we're not gonna talk about it, the full vibe is right here π
β¨ NAME β¨
Net::Frame::Layer::IPv6::Destination β the Internet Protocol v6 Destination Extension Header layer object. it's giving "IPv6 but make it extra headers" π¦
πΈ SYNOPSIS πΈ
use Net::Frame::Simple;
use Net::Frame::Layer::IPv6::Destination;
my $ipv6eh = Net::Frame::Layer::IPv6::Destination->new(
nextHeader => NF_IPv6_PROTOCOL_TCP,
hdrExtLen => 2,
options => []
);
#
# Read a raw layer
#
my $layer = Net::Frame::Layer::IPv6::Destination->new(raw => $raw);
print $layer->print."\n";
print 'PAYLOAD: '.unpack('H*', $layer->payload)."\n"
if $layer->payload;
like, you can build one from scratch with attributes, or you can hand it a raw blob and it'll decode that for you. both paths slay π
π DESCRIPTION π
so this module implements the encoding and decoding of the IPv6 Destination options Extension Header layer. that's the whole job. it does it well. no cap β¨
RFC: ftp://ftp.rfc-editor.org/in-notes/rfc2460.txt β go read it if you're that kind of girl, i respect it π
also, peep Net::Frame::Layer for other attributes and methods, because this layer inherits a whole wardrobe from it π«Ά
π ATTRIBUTES π
nextHeaderβ the protocol number of the next header that comes after the Destination header. like, who's next in line? π₯hdrExtLenβ the length of the Destination Options header measured in 8-byte units, and not counting the first 8 bytes of the header. read that twice bestie, the "not including" part is the trap πoptionsβ a number ofNet::Frame::Layer::IPv6::Optionobjects. yes, a whole lil squad of them π
inherited attributes π
the following are inherited attributes β hit up Net::Frame::Layer for more info:
rawpayloadnextLayer
π¦ METHODS π¦
newnew (hash)β object constructor. you can pass attributes in and they'll overwrite the default ones. check SYNOPSIS for the default values, they're right there β
inherited methods π«
the following are inherited methods. some of them may be overridden in this layer, and some others may not even be meaningful in this layer. so likeβ¦ no promises, check Net::Frame::Layer for the real tea π
layercomputeLengthscomputeChecksumspackunpackencapsulategetLengthgetOptionsLengthgetPayloadLengthprintdump
π CONSTANTS π
No constants here. literally nothing. an empty shelf. iconic of her tbh π
π SEE ALSO π
Net::Frame::Layer
π AUTHOR π
Michael Vincent π
π COPYRIGHT AND LICENSE π
Copyright (c) 2012-2017, Michael Vincent
You may distribute this module under the terms of the Artistic license. See LICENSE.Artistic file in the source distribution archive.
fr fr, if you're shipping this around, go read LICENSE.Artistic first β it's the whole receipts π§Ύ
and that's the page bestie!! perl v5.36.0, dated 2022-11-19, filed under Net::F...nation(3pm) β go forth and encode some extension headers, you absolute main character πβ¨π«Ά
π¦ 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