logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

packet.internet.arp - ARP module

Author

       Jorge Mora (mora@netapp.com)

NFStest 3.2                                       21 March 2023                                           ARP(3)

Bugs

       No known bugs.

Classes

classARP(baseobj.BaseObj)
       ARP object

       Usage:
           from packet.internet.arp import ARP

           x = ARP(pktt)

       Object definition:

       ARP(
           htype = int,    # Hardware type
           ptype = int,    # Protocol type
           hlen  = int,    # Byte length for each hardware address
           plen  = int,    # Byte length for each protocol address
           oper  = int,    # Opcode
           sha   = string, # Hardware address of sender of this packet
           spa   = string, # Protocol address of sender of this packet
           tha   = string, # Hardware address of target of this packet
           tpa   = string, # Protocol address of target of this packet
       )

       Methodsdefinedhere:
       ---------------------

       __init__(self,pktt)
       Constructor

       Initialize object's private data.

              pktt:  Packet trace object (packet.pktt.Pktt) so this layer has
                     access to the parent layers.

   classRARP(ARP)
       ARP object

       Usage:
           from packet.internet.arp import ARP

           x = ARP(pktt)

       Object definition:

       ARP(
           htype = int,    # Hardware type
           ptype = int,    # Protocol type
           hlen  = int,    # Byte length for each hardware address
           plen  = int,    # Byte length for each protocol address
           oper  = int,    # Opcode
           sha   = string, # Hardware address of sender of this packet
           spa   = string, # Protocol address of sender of this packet
           tha   = string, # Hardware address of target of this packet
           tpa   = string, # Protocol address of target of this packet
       )

   classarp_oper(packet.utils.Enum)
       enum arp_oper

Description

       Decode ARP and RARP layers.

       RFC 826 An Ethernet Address Resolution Protocol RFC 903 A Reverse Address Resolution Protocol

Name

       packet.internet.arp - ARP module

See Also

baseobj(3),packet.internet.arp_const(3),packet.internet.ipv6addr(3),packet.link.macaddr(3),packet.utils(3)

See Also