ARP(3)

πŸ’– ARP(3) β€” the arp module, bestie edition πŸ’–

okay so this is the manual page for packet.internet.arp, which ships in arp 1.0 β€” and no, it's not about the little noise your fridge makes, it's about networking. Pull up a chair. πŸͺ‘βœ¨


🌸 NAME 🌸

packet.internet.arp β€” the ARP module. that's it, that's the name. iconic behavior honestly.


πŸ¦‹ DESCRIPTION πŸ¦‹

It decodes ARP and RARP layers. that's the whole job. she does it beautifully. πŸ’…

the receipts, aka the actual RFCs:

  • RFC 826 β€” An Ethernet Address Resolution Protocol
  • RFC 903 β€” A Reverse Address Resolution Protocol

✨ CLASSES ✨

πŸ‘‘ class ARP(baseobj.BaseObj)

the ARP object. main character energy fr fr.

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
)

πŸŽ€ Methods defined here:

---------------------

__init__(self, pktt)

Constructor bestie!! she's initializing the object's private data. that's the vibe.

  • pktt: the Packet trace object (packet.pktt.Pktt), so this layer has access to the parent layers. yes she needs to know who her parents are, we all do πŸ’€

🌈 class RARP(ARP)

ARP object β€” but reverse. same energy, opposite direction πŸ¦‹

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
)

πŸ’œ class arp_oper(packet.utils.Enum)

enum arp_oper. she's an enum. she contains multitudes (well, opcodes) ⭐


πŸ”₯ SEE ALSO πŸ”₯

go read these next, they're all in the group chat:


πŸ™ˆ BUGS πŸ™ˆ

No known bugs. she's literally perfect, not a single red flag, no cap. πŸ’š


πŸ’– AUTHOR πŸ’–

Jorge Mora (mora@netapp.com) β€” shoutout to the author, absolute legend, we stan πŸ«ΆπŸ‘‘


and that's the whole page bestie!! this one came from NFStest 3.2, dated 21 March 2023, and honestly? she ate. periodt. πŸŽ€βœ¨πŸ’