NetPacket::IP

NetPacket::IP is a Perl module to assemble and disassemble IP (Internet Protocol) packets.
Download

NetPacket::IP Ranking & Summary

Advertisement

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

NetPacket::IP Tags


NetPacket::IP Description

NetPacket::IP is a Perl module to assemble and disassemble IP (Internet Protocol) packets. SYNOPSIS use NetPacket::IP; $ip_obj = NetPacket::IP->decode($raw_pkt); $ip_pkt = NetPacket::IP->encode($ip_obj); $ip_data = NetPacket::IP::strip($raw_pkt);NetPacket::IP provides a set of routines for assembling and disassembling packets using IP (Internet Protocol).MethodsNetPacket::IP->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::IP->encode()Return an IP packet encoded with the instance data specified. This will infer the total length of the packet automatically from the payload lenth and also adjust the checksum.FunctionsNetPacket::IP::strip()Return the encapsulated data (or payload) contained in the IP packet. This data is suitable to be used as input for other NetPacket::* modules.This function is equivalent to creating an object using the decode() constructor and returning the data field of that object.Instance dataThe instance data for the NetPacket::IP object consists of the following fields.verThe IP version number of this packet.hlenThe IP header length of this packet.flagsThe IP header flags for this packet.foffsetThe IP fragment offset for this packet.tosThe type-of-service for this IP packet.lenThe length (including length of header) in bytes for this packet.idThe identification (sequence) number for this IP packet.ttlThe time-to-live value for this packet.protoThe IP protocol number for this packet.cksumThe IP checksum value for this packet.src_ipThe source IP address for this packet in dotted-quad notation.dest_ipThe destination IP address for this packet in dotted-quad notation.optionsAny IP options for this packet.dataThe encapsulated data (payload) for this IP packet. Requirements: · Perl


NetPacket::IP Related Software