![]() |
![]()
| ![]() |
![]()
NAMENet::Packet::PPPLCP - PPP Link Control Protocol layer 3 object SYNOPSISuse Net::Packet::Consts qw(:ppplcp); require Net::Packet::PPPLCP; # Build a layer my $layer = Net::Packet::PPPLCP->new( code => NP_PPPLCP_CODE_ECHO_REQUEST, identifier => 1, length => NP_PPPLCP_HDR_LEN, magicNumber => 0xffffffff, ); $layer->pack; print 'RAW: '.unpack('H*', $layer->raw)."\n"; # Read a raw layer my $layer = Net::Packet::PPPLCP->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 Link Control Protocol layer. See also Net::Packet::Layer and Net::Packet::Layer3 for other attributes and methods. ATTRIBUTESMETHODS
CONSTANTSLoad them: use Net::Packet::Consts qw(:ppplcp);
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
|