ConOpSys V2970  P004.07
ANVILEX control operating system
Classes | Macros | Enumerations | Variables
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

Macro Definition Documentation

◆ ETHARP_HWADDR_LEN

#define ETHARP_HWADDR_LEN   ETH_HWADDR_LEN

◆ 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.

◆ 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.

◆ SIZEOF_ETHARP_HDR

#define SIZEOF_ETHARP_HDR   28

Enumeration Type Documentation

◆ etharp_opcode

Enumerator
ARP_REQUEST 
ARP_REPLY 

Variable Documentation

◆ PACK_STRUCT_STRUCT

PACK_STRUCT_BEGIN struct etharp_hdr PACK_STRUCT_STRUCT