1ARP(3) arp 1.0 ARP(3)
2
3
4
6 packet.internet.arp - ARP module
7
9 Decode ARP and RARP layers.
10
11 RFC 826 An Ethernet Address Resolution Protocol RFC 903 A Reverse Ad‐
12 dress Resolution Protocol
13
15 class ARP(baseobj.BaseObj)
16 ARP object
17
18 Usage:
19 from packet.internet.arp import ARP
20
21 x = ARP(pktt)
22
23 Object definition:
24
25 ARP(
26 htype = int, # Hardware type
27 ptype = int, # Protocol type
28 hlen = int, # Byte length for each hardware address
29 plen = int, # Byte length for each protocol address
30 oper = int, # Opcode
31 sha = string, # Hardware address of sender of this packet
32 spa = string, # Protocol address of sender of this packet
33 tha = string, # Hardware address of target of this packet
34 tpa = string, # Protocol address of target of this packet
35 )
36
37
38 Methods defined here:
39 ---------------------
40
41 __init__(self, pktt)
42 Constructor
43
44 Initialize object's private data.
45
46
47 pktt: Packet trace object (packet.pktt.Pktt) so this layer has
48 access to the parent layers.
49
50 class RARP(ARP)
51 ARP object
52
53 Usage:
54 from packet.internet.arp import ARP
55
56 x = ARP(pktt)
57
58 Object definition:
59
60 ARP(
61 htype = int, # Hardware type
62 ptype = int, # Protocol type
63 hlen = int, # Byte length for each hardware address
64 plen = int, # Byte length for each protocol address
65 oper = int, # Opcode
66 sha = string, # Hardware address of sender of this packet
67 spa = string, # Protocol address of sender of this packet
68 tha = string, # Hardware address of target of this packet
69 tpa = string, # Protocol address of target of this packet
70 )
71
72
73 class arp_oper(packet.utils.Enum)
74 enum arp_oper
75
76
78 baseobj(3), packet.internet.arp_const(3), packet.internet.ipv6addr(3),
79 packet.link.macaddr(3), packet.utils(3)
80
81
83 No known bugs.
84
86 Jorge Mora (mora@netapp.com)
87
88
89
90NFStest 3.2 21 March 2023 ARP(3)