|
NAMENet::Packet::LLC - Logical-Link Control layer 3 object SYNOPSIS use Net::Packet::Consts qw(:llc);
require Net::Packet::LLC;
# Build a layer
my $layer = Net::Packet::LLC->new(
dsap => NP_LLC_DSAP_SNAP,
ig => 1,
ssap => NP_LLC_SSAP_SNAP,
cr => 1,
control => 0x03,
oui => NP_LLC_OUI_CISCO,
pid => NP_LLC_PID_CDP,
);
$layer->pack;
print 'RAW: '.unpack('H*', $layer->raw)."\n";
# Read a raw layer
my $layer = Net::Packet::LLC->new(raw => $raw);
print $layer->print."\n";
print 'PAYLOAD: '.unpack('H*', $layer->payload)."\n"
if $layer->payload;
DESCRIPTIONThis modules implements the encoding and decoding of the Logical-Link Control layer. See also Net::Packet::Layer and Net::Packet::Layer3 for other attributes and methods. ATTRIBUTESMETHODS
CONSTANTSLoad them: use Net::Packet::Consts qw(:llc);
AUTHORPatrice <GomoR> Auffret COPYRIGHT AND LICENSECopyright (c) 2004-2009, Patrice <GomoR> Auffret You may distribute this module under the terms of the Artistic license. See LICENSE.Artistic file in the source distribution archive. RELATED MODULESNetPacket, Net::RawIP, Net::RawSock
|