ReactOS 0.4.16-dev-258-g81860b4
etharp.h File Reference
#include "lwip/arch.h"
#include "lwip/prot/ethernet.h"
Include dependency graph for etharp.h:

Go to the source code of this file.

Classes

struct  ip4_addr_wordaligned
 
struct  etharp_hdr
 

Macros

#define ETHARP_HWADDR_LEN   ETH_HWADDR_LEN
 
#define IPADDR_WORDALIGNED_COPY_TO_IP4_ADDR_T(dest, src)   SMEMCPY(dest, src, sizeof(ip4_addr_t))
 
#define IPADDR_WORDALIGNED_COPY_FROM_IP4_ADDR_T(dest, src)   SMEMCPY(dest, src, sizeof(ip4_addr_t))
 
#define SIZEOF_ETHARP_HDR   28
 

Enumerations

enum  etharp_opcode { ARP_REQUEST = 1 , ARP_REPLY = 2 }
 

Variables

PACK_STRUCT_BEGIN struct ip4_addr_wordaligned PACK_STRUCT_STRUCT
 

Detailed Description

ARP protocol definitions

Definition in file etharp.h.

Macro Definition Documentation

◆ ETHARP_HWADDR_LEN

#define ETHARP_HWADDR_LEN   ETH_HWADDR_LEN

Definition at line 48 of file etharp.h.

◆ IPADDR_WORDALIGNED_COPY_FROM_IP4_ADDR_T

#define IPADDR_WORDALIGNED_COPY_FROM_IP4_ADDR_T (   dest,
  src 
)    SMEMCPY(dest, src, sizeof(ip4_addr_t))

MEMCPY-like copying of IP addresses where addresses are known to be 16-bit-aligned if the port is correctly configured (so a port could define this to copying 2 u16_t's) - no NULL-pointer-checking needed.

Definition at line 78 of file etharp.h.

◆ IPADDR_WORDALIGNED_COPY_TO_IP4_ADDR_T

#define IPADDR_WORDALIGNED_COPY_TO_IP4_ADDR_T (   dest,
  src 
)    SMEMCPY(dest, src, sizeof(ip4_addr_t))

MEMCPY-like copying of IP addresses where addresses are known to be 16-bit-aligned if the port is correctly configured (so a port could define this to copying 2 u16_t's) - no NULL-pointer-checking needed.

Definition at line 71 of file etharp.h.

◆ SIZEOF_ETHARP_HDR

#define SIZEOF_ETHARP_HDR   28

Definition at line 102 of file etharp.h.

Enumeration Type Documentation

◆ etharp_opcode

Enumerator
ARP_REQUEST 
ARP_REPLY 

Definition at line 105 of file etharp.h.

105 {
106 ARP_REQUEST = 1,
107 ARP_REPLY = 2
108};
@ ARP_REPLY
Definition: etharp.h:107
@ ARP_REQUEST
Definition: etharp.h:106

Variable Documentation

◆ PACK_STRUCT_STRUCT

PACK_STRUCT_BEGIN struct etharp_hdr PACK_STRUCT_STRUCT