Net::F...sement(3pm)
π NAME π
Net::Frame::Layer::ICMPv6::NeighborAdvertisement β it's the ICMPv6 Neighbor Advertisement type object, bestie. That's the whole vibe. It's a Perl module and it handles exactly one thing and it does it flawlessly, periodt. π¦
β¨ SYNOPSIS β¨
okay so here's how you actually use it:
use Net::Frame::Layer::ICMPv6::NeighborAdvertisement;
my $layer = Net::Frame::Layer::ICMPv6::NeighborAdvertisement->new(
flags => NF_ICMPv6_FLAG_SOLICITED,
reserved => 0,
targetAddress => '::1',
);
$layer->pack;
print 'RAW: '.$layer->dump."\n";
# Read a raw layer
my $layer = Net::Frame::Layer::ICMPv6::NeighborAdvertisement->new(
raw => $raw,
);
print $layer->print."\n";
print 'PAYLOAD: '.unpack('H*', $layer->payload)."\n"
if $layer->payload;
Like, you build it, you pack it, you dump it, and if you're on the receiving end you just hand it the raw bytes and it figures everything out for you. iconic behaviour honestly. π«Ά
πΈ DESCRIPTION πΈ
This module implements the encoding and decoding of the ICMPv6 Neighbor Advertisement object. Both directions!! Building packets AND reading them. We love a versatile queen. π
See also Net::Frame::Layer for other attributes and methods, because this layer is not doing all of that alone, iykyk.
π ATTRIBUTES π
flagsβ the ICMPv6 Neighbor Advertisement flags. Head over to CONSTANTS for the details bestie.reservedβ should be zeroed. Zero it. It said what it said. πtargetAddressβ the IPv6 address you want to lookup (for example). That's the one you're asking about.optionsβ an arrayref ofNet::Frame::Layer::Optionobjects. Yes, arrayref. Yes, objects. Slay.
The following are inherited attributes β go check Net::Frame::Layer for more info:
rawpayloadnextLayer
β METHODS β
newnew (hash)β the object constructor, bb. You can pass attributes and they'll overwrite the defaults. Wanna know the defaults? Look at SYNOPSIS, it's all right there. πgetOptionsLengthβ returns the length in bytes ofoptions, and returns0if there are none. Short and honest. πΈ
The following are inherited methods. Some of them may be overridden in this layer, and some others may not be meaningful in this layer β so don't come for them if they're not doing much here, fr fr. See Net::Frame::Layer for more information:
layercomputeLengthscomputeChecksumspackunpackencapsulategetLengthgetPayloadLengthprintdump
π CONSTANTS π
No constants here. Nothing. Empty. A whole section with zero content and honestly? Respect the transparency. π
π¦ SEE ALSO π¦
Net::Frame::Layer::ICMPv6Net::Frame::Layer
π AUTHOR π
Patrice <GomoR> Auffret. A legend. No cap. π«Ά
π 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. That's the whole legal vibe, bestie, go read the file. β¨
this has been perl v5.30.0, dated 2019-12-26, from the User Contributed Perl Documentation for Net::F...sement(3pm) β mwah, take care of her π
π¦ 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