lwIP  2.0.1
Lightweight IP stack
ethernet.h File Reference
#include "lwip/arch.h"
#include "arch/bpstruct.h"
#include "arch/epstruct.h"

Data Structures

struct  eth_hdr
 
struct  eth_vlan_hdr
 

Macros

#define LL_IP4_MULTICAST_ADDR_0   0x01
 
#define LL_IP6_MULTICAST_ADDR_0   0x33
 
#define ETHADDR32_COPY(dst, src)   SMEMCPY(dst, src, ETH_HWADDR_LEN)
 
#define ETHADDR16_COPY(dst, src)   SMEMCPY(dst, src, ETH_HWADDR_LEN)
 

Enumerations

Detailed Description

Ethernet protocol definitions

Macro Definition Documentation

#define ETHADDR16_COPY (   dst,
  src 
)    SMEMCPY(dst, src, ETH_HWADDR_LEN)

MEMCPY-like macro to copy to/from struct eth_addr's that are no local variables and known to be 16-bit aligned within the protocol header.

#define ETHADDR32_COPY (   dst,
  src 
)    SMEMCPY(dst, src, ETH_HWADDR_LEN)

MEMCPY-like macro to copy to/from struct eth_addr's that are local variables or known to be 32-bit aligned within the protocol header.

#define LL_IP4_MULTICAST_ADDR_0   0x01

The 24-bit IANA IPv4-multicast OUI is 01-00-5e:

#define LL_IP6_MULTICAST_ADDR_0   0x33

IPv6 multicast uses this prefix