|
TuyaOS
|

结构体 | |
| 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
| #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.
| #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.