RARP - Reverse Address Resolution Protocol

pcapkit.protocols.application.rarp.protocol contains RARP only, which implements an extractor for Reverse Address Resolution Protocol (RARP) [*], whose structure is:

Octets

Bits

Name

Description

0

0

rarp.htype

Hardware Type

2

16

rarp.ptype

Protocol Type

4

32

rarp.hlen

Hardware Address Length

5

40

rarp.plen

Protocol Address Length

6

48

rarp.oper

Operation

8

64

rarp.sha

Sender Hardware Address

14

112

rarp.spa

Sender Protocol Address

18

144

rarp.tha

Target Hardware Address

24

192

rarp.tpa

Target Protocol Address

Added in version 1.5.0: Moved here from pcapkit.protocols.link.rarp. RARP and DRARP derive from Application as well as ARP, so their layer is 'Application' (#719).

Removed in version 1.5.0: pcapkit.protocols.link.rarp, and the RARP and DRARP names that pcapkit.protocols.link exported, with no alias (#719).

Removed in version 1.6.0: pcapkit.protocols.application.rarp.DRARP, with no alias. The class moved to pcapkit.protocols.application.drarp.protocol, since a module holds one protocol class, named after it (#2529).

class pcapkit.protocols.application.rarp.protocol.RARP(file=None, length=None, **kwargs)[source]

Bases: Application, ARP

This class implements Reverse Address Resolution Protocol.

RFC 1122 Section 1.1.3 lists RARP in the application layer, among the “support protocols, used for host name mapping, booting, and management”, while putting ARP in the Link Layer chapter at RFC 1122 Section 2.3.2 – two sibling protocols sharing one frame format, placed on function alone. Hence the two bases: the layer base Application first, for layer == 'Application', then the protocol family base ARP for the shared parser. See Protocol Layer Placement.

Note

The order is load-bearing, not stylistic. ARP’s chain reaches Link, which owns __layer__, so class RARP(ARP, Application) would report 'Link'.

The subpackage does not track the dispatch tier: RARP is dispatched from Link.__proto__ at Reverse_Address_Resolution_Protocol, since an Ethernet frame is what carries it.

classmethod id()[source]

Index ID of the protocol.

Return type:

tuple[Literal['RARP'], Literal['DRARP']]

classmethod __index__()[source]

Numeral registry index of the protocol.

Return type:

EtherType

Returns:

Numeral registry index of the protocol in IANA.

Footnotes