NetPacket::ARP

NetPacket::ARP is a Perl module to assemble and disassemble ARP (Address Resolution Protocol) packets.
Download

NetPacket::ARP Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Tim Potter
  • Publisher web site:
  • http://search.cpan.org/~atrak/NetPacket-0.04/NetPacket/ARP.pm

NetPacket::ARP Tags


NetPacket::ARP Description

NetPacket::ARP is a Perl module to assemble and disassemble ARP (Address Resolution Protocol) packets. NetPacket::ARP is a Perl module to assemble and disassemble ARP (Address Resolution Protocol) packets.SYNOPSIS use NetPacket::ARP; $tcp_obj = NetPacket::ARP->decode($raw_pkt); $tcp_pkt = NetPacket::ARP->encode(params...); # Not implementedNetPacket::ARP provides a set of routines for assembling and disassembling packets using ARP (Address Resolution Protocol).MethodsNetPacket::ARP->decode()Decode the raw packet data given and return an object containing instance data. This method will quite happily decode garbage input. It is the responsibility of the programmer to ensure valid packet data is passed to this method.NetPacket::ARP->encode(param => value)Return a ARP packet encoded with the instance data specified. Not implemented.FunctionsNetPacket::ARP::strip()Return the encapsulated data (or payload) contained in the TCP packet. Since no payload data is encapulated in an ARP packet (only instance data), this function returns undef.Instance dataThe instance data for the NetPacket::ARP object consists of the following fields.htypeHardware type.protoProtocol type.hlenHeader length.plenProtocol length.opcodeOne of the following constants:ARP_OPCODE_REQUESTARP_OPCODE_REPLYRARP_OPCODE_REQUESTRARP_OPCODE_REPLYshaSource hardware address.spaSource protocol address.thaTarget hardware address.tpaTarget protocol address. Requirements: · Perl


NetPacket::ARP Related Software