TuyaOS
结构体 | 宏定义 | 枚举 | 常量
etharp.h 文件参考
#include "lwip/arch.h"
#include "lwip/prot/ethernet.h"
etharp.h 的引用(Include)关系图:

浏览源代码.

结构体

struct  etharp_hdr
 

宏定义

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

枚举

enum  etharp_opcode { ARP_REQUEST = 1 , ARP_REPLY = 2 }
 

常量

PACK_STRUCT_BEGIN struct ip4_addr_wordaligned PACK_STRUCT_STRUCT
 

详细描述

ARP protocol definitions

宏定义说明

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