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
hardware address space, e.g.
Ethernet:0x0001
Definition at line 58 of file arp.h.
protocol address space, e.g.
IP:0x0800
Definition at line 59 of file arp.h.
byte length of each hardware address
Definition at line 60 of file arp.h.
byte length of each protocol address
Definition at line 61 of file arp.h.
opcode, Request:0x0001, Reply:0x0002
Definition at line 62 of file arp.h.
hardware address of sender
Definition at line 63 of file arp.h.
protocol address of sender
Definition at line 64 of file arp.h.
hardware address of target
Definition at line 65 of file arp.h.
protocol address of target
Definition at line 66 of file arp.h.
The documentation for this struct was generated from the following file:
- nip_stack/include/net/arp.h