|
NAMENet::Packet::PPP - Point-to-Point Protocol layer 2 object SYNOPSIS use Net::Packet::Consts qw(:ppp);
require Net::Packet::PPP;
# Build a layer
my $layer = Net::Packet::PPP->new(
protocol => NP_PPP_PROTOCOL_IPv4,
);
$layer->pack;
print 'RAW: '.unpack('H*', $layer->raw)."\n";
# Read a raw layer
my $layer = Net::Packet::PPP->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 Point-to-Point Protocol layer. See also Net::Packet::Layer and Net::Packet::Layer2 for other attributes and methods. ATTRIBUTESMETHODS
CONSTANTSLoad them: use Net::Packet::Consts qw(:ppp);
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
|