RARP/DRARP - (Dynamic) Reverse Address Resolution Protocol

pcapkit.protocols.link.rarp contains RARP only, which implements extractor for (Dynamic) Reverse Address Resolution Protocol (RARP/DRARP) *, whose structure is described as below:

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


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

Bases: pcapkit.protocols.link.arp.ARP

This class implements Reverse Address Resolution Protocol.

classmethod __index__()[source]

Numeral registry index of the protocol.

Returns

Numeral registry index of the protocol in IANA.

Return type

pcapkit.const.reg.ethertype.EtherType

classmethod id()[source]

Index ID of the protocol.

Returns

Index ID of the protocol.

Return type

Tuple[Literal[‘RARP’], Literal[‘DRARP’]]

_acnm = 'RARP'

Acronym of corresponding protocol.

_name = 'Reverse Address Resolution Protocol'

Name of corresponding protocol.


*

http://en.wikipedia.org/wiki/Address_Resolution_Protocol