Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

ARP (arp)

  • Layer: L2 (data link)
  • Header: 28 octets (fixed)

Reached from

Lower layerSelectorValue
ethernet2ethertype2054 (0x0806)
dot1qethertype2054 (0x0806)
dot1adethertype2054 (0x0806)
snappid2054 (0x0806)

Fields

FieldTypeDefaultAutoDescription
htypeenum(16)1 (ethernet)Hardware type (1 = Ethernet).
ptypeenum(16)2048 (ipv4)Protocol type (EtherType, 0x0800 = IPv4).
hlenuint(8)6Hardware address length in bytes (6 for Ethernet).
plenuint(8)4Protocol address length in bytes (4 for IPv4).
operenum(16)1 (request)Operation (1 = request, 2 = reply).
shamac02:00:00:00:00:01Sender hardware address.
spaipv4192.0.2.1Sender protocol address.
thamac00:00:00:00:00:00Target hardware address.
tpaipv4192.0.2.2Target protocol address.

htype

ValueName
1 (0x0001)ethernet
6 (0x0006)ieee802
15 (0x000f)frame_relay
16 (0x0010)atm

ptype

ValueName
2048 (0x0800)ipv4
34525 (0x86dd)ipv6

oper

ValueName
1 (0x0001)request
2 (0x0002)reply
3 (0x0003)rarp_request
4 (0x0004)rarp_reply
8 (0x0008)inarp_request
9 (0x0009)inarp_reply

Constraints

LevelRule
warninghlen = 6
warningplen = 4
warningoper within 1..2

Sample templates