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:
baseobj(3)packet.internet.arp_const(3)packet.internet.ipv6addr(3)packet.link.macaddr(3)packet.utils(3)
π 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. πβ¨π
π¦ where this page comes from
- debian trixie: nfstest 3.2-3
- fedora 43: NFStest 3.2-14.fc43 Β· GPL-2.0-or-later
- fedora 44: NFStest 3.2-16.fc44 Β· GPL-2.0-or-later
- ubuntu noble: nfstest 3.2-2
- ubuntu questing: nfstest 3.2-3
- ubuntu resolute: nfstest 3.2-3build1
- ubuntu stonking: nfstest 3.2-5
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms