|
NAMENet::Packet::PPPoE - PPP-over-Ethernet layer 3 object SYNOPSIS use Net::Packet::Consts qw(:pppoe);
require Net::Packet::PPPoE;
# Build a layer
my $layer = Net::Packet::PPPoE->new(
version => 1,
type => 1,
code => 0,
sessionId => 1,
payloadLength => 0,
pppProtocol => NP_PPPoE_PPP_PROTOCOL_IPv4,
);
$layer->pack;
print 'RAW: '.unpack('H*', $layer->raw)."\n";
# Read a raw layer
my $layer = Net::Packet::PPPoE->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 PPP-over-Ethernet layer. See also Net::Packet::Layer and Net::Packet::Layer3 for other attributes and methods. ATTRIBUTES
METHODS
CONSTANTSLoad them: use Net::Packet::Consts qw(:pppoe);
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
|