Net::F...itation(3pm)
π NAME π
okay so bestie, welcome to Net::Frame::Layer::ICMPv6::NeighborSolicitation β it's the ICMPv6 Neighbor Solicitation type object from the Net::Frame family. yes that's a whole mouthful, we know, but she's iconic and she does exactly one job and she does it slay. π¦
(this page lives in the User Contributed Perl Documentation section of the manual, aka 3pm, in case you were wondering where you wandered into π
)
β¨ SYNOPSIS β¨
here's the vibe, copy-paste ready, no notes:
use Net::Frame::Layer::ICMPv6::NeighborSolicitation;
my $layer = Net::Frame::Layer::ICMPv6::NeighborSolicitation->new(
reserved => 0,
targetAddress => '::1',
);
$layer->pack;
print 'RAW: '.$layer->dump."\n";
# Read a raw layer
my $layer = Net::Frame::Layer::ICMPv6::NeighborSolicitation->new(
raw => $raw,
);
print $layer->print."\n";
print 'PAYLOAD: '.unpack('H*', $layer->payload)."\n"
if $layer->payload;
like. she builds, she packs, she dumps, she reads raw bytes back in. versatile queen π
πΈ DESCRIPTION πΈ
this module implements the encoding and decoding of the ICMPv6 Neighbor Solicitation object. that's it, that's the whole assignment, and she ate. π₯
also go look at Net::Frame::Layer for other attributes and methods β that's where the rest of the family lives.
π ATTRIBUTES π
reservedβ should be zeroed. like, zero. nothing. empty. the void. don't put stuff here bestie, it's reserved for a reason πtargetAddressβ an IPv6 address. the whole point of the neighbor solicitation, lowkey the main character here π«optionsβ an arrayref of Net::Frame::Layer::Option objects.
and these next ones are the inherited attributes β go read Net::Frame::Layer if you want the full lore:
rawpayloadnextLayer
π METHODS π
π«Ά new
π«Ά new (hash)
object constructor, bestie. you can pass attributes in and they'll overwrite the default ones. peep the SYNOPSIS for what the default values look like β they're right there, no gatekeeping π
π«Ά getOptionsLength
returns the length in bytes of options, and it's 0 if there aren't any. simple. clean. we love a one-job method.
the following are the inherited methods. some of them might be overridden in this layer, and some of them might genuinely not mean anything in this layer β that's just how it is, no cap. see Net::Frame::Layer for more:
layercomputeLengthscomputeChecksumspackunpackencapsulategetLengthgetPayloadLengthprintdump
β CONSTANTS β
No constants here. that's it. empty. a beautiful blank page. ποΈ
π SEE ALSO π
Net::Frame::Layer::ICMPv6Net::Frame::Layer
go read them, iykyk π
π AUTHOR π
Patrice <GomoR> Auffret β the legend herself. well, himself, but you get the energy. π
π COPYRIGHT AND LICENSE π
Copyright (c) 2006-2019, Patrice <GomoR> Auffret
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, it's short and it's your friend π§
perl v5.30.0 Β· 2019-12-26 β and that's the whole page bestie, mwah, go write some packets π β¨π
π¦ where this page comes from
- debian bookworm: libnet-frame-layer-icmpv6-perl 1.11-1 Β· Artistic-1.0-Perl
- debian trixie: libnet-frame-layer-icmpv6-perl 1.11-1 Β· Artistic-1.0-Perl
- ubuntu jammy: libnet-frame-layer-icmpv6-perl 1.11-1 Β· Artistic-1.0-Perl
- ubuntu noble: libnet-frame-layer-icmpv6-perl 1.11-1 Β· Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms