1ARP(3)                              arp 1.0                             ARP(3)
2
3
4

NAME

6       packet.internet.arp - ARP module
7

DESCRIPTION

9       Decode ARP and RARP layers.
10
11       RFC  826  An  Ethernet  Address  Resolution  Protocol RFC 903 A Reverse
12       Address Resolution Protocol
13

CLASSES

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 arp_oper(packet.utils.Enum)
51       enum arp_oper
52
53

SEE ALSO

55       baseobj(3), packet.link.macaddr(3), packet.utils(3)
56
57

BUGS

59       No known bugs.
60

AUTHOR

62       Jorge Mora (mora@netapp.com)
63
64
65
66NFStest 2.1.5                  14 February 2017                         ARP(3)
Impressum