Net::F...ragment(3pm)

πŸ“¦
version 1.08 Β· 2 versions
  • 1.08 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 1.08 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– 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 as reserved, lowkey redundant, highkey fine 🌸
  • mFlag β€” same as the flag of the same name in the IPv4 header. when it's set to 0, it indicates this is the last fragment in a message 🎬; when it's set to 1, 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:

  • raw
  • payload
  • nextLayer

πŸ’œ 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:

  • layer
  • computeLengths
  • computeChecksums
  • pack
  • unpack
  • encapsulate
  • getLength
  • getPayloadLength
  • print
  • dump

⭐ 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 (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 πŸŽ€πŸ’–βœ¨