Net::F...ragment(3pm)
π Net::F...ragment(3pm) π
okay bestie, so this is the manual page for Net::Frame::Layer::IPv6::Fragment, which lives in the User Contributed Perl Documentation corner of the universe β¨. It's giving Internet Protocol v6 Fragment Extension Header layer object energy, and honestly? she's iconic. Let's get into it π«Ά
β¨ NAME β¨
Net::Frame::Layer::IPv6::Fragment β the Internet Protocol v6 Fragment Extension Header layer object π
no cap, that's literally the whole name.
π SYNOPSIS π
here's how you actually use her, copy-paste friendly and everything:
use Net::Frame::Simple;
use Net::Frame::Layer::IPv6::Fragment;
my $icmp = Net::Frame::Layer::IPv6::Fragment->new(
nextHeader => NF_IPv6_PROTOCOL_TCP,
reserved => 0,
fragmentOffset => 0,
res => 0,
mFlag => 0,
identification => 0
);
#
# Read a raw layer
#
my $layer = Net::Frame::Layer::IPv6::Fragment->new(raw => $raw);
print $layer->print."\n";
print 'PAYLOAD: '.unpack('H*', $layer->payload)."\n"
if $layer->payload;
periodt. that's the whole vibe check right there π
π¦ DESCRIPTION π¦
so basically this module implements the encoding and decoding of the IPv6 Fragment Extension Header layer. that's the tea β
RFC, for the girlies who like receipts: ftp://ftp.rfc-editor.org/in-notes/rfc2460.txt
also, go peek at Net::Frame::Layer for other attributes and methods, she's the main character of the family π
π ATTRIBUTES π
here's every single one, no skipping, we don't do that here:
nextHeaderβ the protocol number of the next header that comes after the Fragment header. it's the "who's next" of the situation β¨reservedβ not used at all bestie; set it to zeroes. it's just sitting there, minding her business πfragmentOffsetβ specifies the offset, or position, in the overall message where the data in this fragment goes. it's measured in units of 8 bytes (that's 64 bits for the math girlies) and it gets used in a way that's very similar to the field of the same name in the IPv4 header. twins fr fr π―resβ not used; set to zeroes. yeah she's basically the same energy asreserved, lowkey redundant, highkey fine πΈmFlagβ same as the flag of the same name in the IPv4 header. when it's set to0, it indicates this is the last fragment in a message π¬; when it's set to1, it indicates that more fragments are yet to come in the fragmented message π the suspense!!identificationβ same as the field of the same name in the IPv4 header, except she got expanded to 32 bits π she contains a specific value that's common to each of the fragments belonging to a particular message, so that pieces from different fragmented messages don't get mixed together. she's the group chat admin keeping everyone in the right thread, periodt π§
the following are inherited attributes β see Net::Frame::Layer for more info:
rawpayloadnextLayer
π METHODS π
new
new (hash)
Object constructor β¨ you can pass attributes in and they'll overwrite the default ones. see SYNOPSIS for the default values, they're all listed up there, go look, i'll wait π«Ά
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 β no cap, that's just how it is. see Net::Frame::Layer for more information:
layercomputeLengthscomputeChecksumspackunpackencapsulategetLengthgetPayloadLengthprintdump
β CONSTANTS β
No constants here. that's it, that's the section, she's empty and she's thriving π
π₯ SEE ALSO π₯
Net::Frame::Layer
go read her, she's the blueprint π
π AUTHOR π
Michael Vincent β thank you for your service, king π«‘
πΈ COPYRIGHT AND LICENSE πΈ
Copyright (c) 2012-2017, Michael Vincent
You may distribute this module under the terms of the Artistic license. See the LICENSE.Artistic file in the source distribution archive for the full deets β¨
fr fr, keep the license file around, it's not optional, bestie π
and that's the whole page!! this one's brought to you by perl v5.36.0, dated 2022-11-19, straight from the Net::F...ragment(3pm) header up top β slay, bye ππβ¨
π¦ 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