Net::F...nation(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...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 of Net::Frame::Layer::IPv6::Option objects. yes, a whole lil squad of them 🌈

inherited attributes πŸ‘‘

the following are inherited attributes β€” hit up 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. 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 😭

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

🌟 CONSTANTS 🌟

No constants here. literally nothing. an empty shelf. iconic of her tbh πŸ’€


🌈 SEE ALSO 🌈

  • Net::Frame::Layer

πŸ‘‘ AUTHOR πŸ‘‘

Michael Vincent πŸ’–


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 πŸŽ€βœ¨πŸ«Ά