ARP_PACKET Struct Reference

ARP packet structure. More...

#include <arp.h>


Data Fields

uint16_t hrd
 hardware address space, e.g.
uint16_t pro
 protocol address space, e.g.
uint8_t hln
 byte length of each hardware address
uint8_t pln
 byte length of each protocol address
uint8_t op [2]
 opcode, Request:0x0001, Reply:0x0002
uint8_t sha [NIP_ARP_HW_SIZE]
 hardware address of sender
uint8_t spa [NIP_ARP_PR_SIZE]
 protocol address of sender
uint8_t tha [NIP_ARP_HW_SIZE]
 hardware address of target
uint8_t tpa [NIP_ARP_PR_SIZE]
 protocol address of target


Detailed Description

ARP packet structure.

Note:
That this implementation of ARP is limited to IP and Ethernet addresses being used. For usage with other protocols the above ..SIZE defines have to be adapted or for use with multiple protocols the implementation has to be modified to support dynamically sized ARP packets.

Definition at line 57 of file arp.h.


Field Documentation

uint16_t ARP_PACKET::hrd

hardware address space, e.g.

Ethernet:0x0001

Definition at line 58 of file arp.h.

uint16_t ARP_PACKET::pro

protocol address space, e.g.

IP:0x0800

Definition at line 59 of file arp.h.

uint8_t ARP_PACKET::hln

byte length of each hardware address

Definition at line 60 of file arp.h.

uint8_t ARP_PACKET::pln

byte length of each protocol address

Definition at line 61 of file arp.h.

uint8_t ARP_PACKET::op[2]

opcode, Request:0x0001, Reply:0x0002

Definition at line 62 of file arp.h.

uint8_t ARP_PACKET::sha[NIP_ARP_HW_SIZE]

hardware address of sender

Definition at line 63 of file arp.h.

uint8_t ARP_PACKET::spa[NIP_ARP_PR_SIZE]

protocol address of sender

Definition at line 64 of file arp.h.

uint8_t ARP_PACKET::tha[NIP_ARP_HW_SIZE]

hardware address of target

Definition at line 65 of file arp.h.

uint8_t ARP_PACKET::tpa[NIP_ARP_PR_SIZE]

protocol address of target

Definition at line 66 of file arp.h.


The documentation for this struct was generated from the following file:

Generated on Thu Jul 10 01:10:08 2008 for NIP by  doxygen 1.5.5