Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Libraries

    NetPacket::ARP 0.04

    Download button

    No screenshots available
    Downloads: 380  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Tim Potter | More programs
    Perl Artistic License / FREE
    March 8th, 2007, 08:05 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    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 implemented

    NetPacket::ARP provides a set of routines for assembling and disassembling packets using ARP (Address Resolution Protocol).

    Methods

    NetPacket::ARP->decode([RAW PACKET])

    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.

    Functions

    NetPacket::ARP::strip([RAW PACKET])
    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 data

    The instance data for the NetPacket::ARP object consists of the following fields.

    htype

    Hardware type.

    proto

    Protocol type.

    hlen

    Header length.

    plen

    Protocol length.

    opcode

    One of the following constants:

    ARP_OPCODE_REQUEST
    ARP_OPCODE_REPLY
    RARP_OPCODE_REQUEST
    RARP_OPCODE_REPLY

    sha

    Source hardware address.

    spa

    Source protocol address.

    tha

    Target hardware address.

    tpa

    Target protocol address.

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    assemble ARP packets | disassemble ARP packets | Perl module | NetPacket::ARP | assemble | disassemble

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM