Net::F...opByHop(3pm)
π Net::Frame::Layer::IPv6::HopByHop β the manual, but make it cute β¨
okay bestie, so this page lives in the User Contributed Perl Documentation section, and it's all about one very specific little layer object: Net::Frame::Layer::IPv6::HopByHop, aka the Internet Protocol v6 Hop-By-Hop Extension Header layer object. yes, that's a mouthful. yes, we're doing it anyway. π
β¨ NAME β¨
Net::Frame::Layer::IPv6::HopByHop β the Internet Protocol v6 Hop-By-Hop Extension Header layer object. that's the whole vibe. π¦
π SYNOPSIS π
here's how you actually use it, no cap:
use Net::Frame::Simple;
use Net::Frame::Layer::IPv6::HopByHop;
my $ipv6eh = Net::Frame::Layer::IPv6::HopByHop->new(
nextHeader => NF_IPv6_PROTOCOL_TCP,
hdrExtLen => 2,
options => []
);
#
# Read a raw layer
#
my $layer = Net::Frame::Layer::IPv6::HopByHop->new(raw => $raw);
print $layer->print."\n";
print 'PAYLOAD: '.unpack('H*', $layer->payload)."\n"
if $layer->payload;
see? constructor first, then the raw-layer glow-up. both are iconic, both are valid. π
πΈ DESCRIPTION πΈ
so this module implements the encoding and decoding of the IPv6 Hop-By-Hop options Extension Header layer. that's literally its whole job. it's giving "I do one thing and I do it flawlessly." π
the spec it follows:
- RFC:
ftp://ftp.rfc-editor.org/in-notes/rfc2460.txt
also, heads up: check out Net::Frame::Layer for other attributes and methods, because this layer inherits a lot from its parent. π«Ά
π ATTRIBUTES π
these are the ones this layer brings to the group chat:
nextHeaderβ the protocol number of the next header that comes after the HopByHop header. it's the "and then what??" field. πhdrExtLenβ the length of the Hop-By-Hop Options header, measured in 8-byte units, and it does not include the first 8 bytes of the header. sneaky? a little. correct? absolutely. β¨optionsβ a number ofNet::Frame::Layer::IPv6::Optionobjects. plural. a whole little squad of them. π
the following are inherited attributes β go read Net::Frame::Layer for more info, bestie:
rawpayloadnextLayer
β METHODS β
newnew (hash)β the object constructor. you can pass attributes in and they'll overwrite the default ones. peek at SYNOPSIS for the default values. π
the following are inherited methods. some of them may be overridden in this layer, and some others may not even be meaningful here β so don't come for me if one of them is just standing there. check Net::Frame::Layer for more info:
layercomputeLengthscomputeChecksumspackunpackencapsulategetLengthgetOptionsLengthgetPayloadLengthprintdump
π CONSTANTS π
no constants here. none. zero. the void. an empty plate. π½οΈβ¨
π₯ SEE ALSO π₯
Net::Frame::Layer
π AUTHOR π
Michael Vincent. the icon. the moment. the whole reason this exists. π«‘
π 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, read the license file before you go redistributing, bestie. it's the rules. π
okay that's the whole page!! this was generated from perl v5.36.0 and dated 2022-11-19, and that's the sign-off, so slay, go encode some IPv6 extension headers, mwah πππ¦
π¦ 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