This is a low-level network debugging utility that utilizes raw packet i/o to construct and deconstruct tcp, udp, ipv4, arp, and icmp packets over ethernet.

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

ARP_Packet Struct Reference

ARP_Packet Struct Reference

ARP Packet memory map. More...

#include <arp.h>

Data Fields

u16 hardware_type
 0x0001 for ethernet
u16 protocol_type
 0x0800 for IPv4
u8 hardware_length
 Bytes. Ethernet is 6.
u8 protocol_length
 Bytes. IPv4 is 4.
u16 operation
 Operation. 1 for request, 2 for reply or announce.
u8 sender_hardware_address [6]
 Generator of the request or reply.
u8 sender_protocol_address [4]
 All zeroes for an ARP probe.
u8 target_hardware_address [6]
 Announce - same as SHA.
u8 target_protocol_address [4]
 Announce - Same as TPA.

Detailed Description

ARP Packet memory map.

Definition at line 17 of file arp.h.


Field Documentation

Bytes. Ethernet is 6.

Definition at line 20 of file arp.h.

0x0001 for ethernet

Definition at line 18 of file arp.h.

Operation. 1 for request, 2 for reply or announce.

Definition at line 22 of file arp.h.

Bytes. IPv4 is 4.

Definition at line 21 of file arp.h.

0x0800 for IPv4

Definition at line 19 of file arp.h.

Generator of the request or reply.

Definition at line 24 of file arp.h.

All zeroes for an ARP probe.

Definition at line 25 of file arp.h.

Announce - same as SHA.

Definition at line 26 of file arp.h.

Announce - Same as TPA.

Definition at line 27 of file arp.h.