Prusa MINI Firmware overview
|
Go to the documentation of this file.
37 #ifndef LWIP_HDR_PROT_ETHERNET_H
38 #define LWIP_HDR_PROT_ETHERNET_H
46 #ifndef ETH_HWADDR_LEN
47 #ifdef ETHARP_HWADDR_LEN
48 #define ETH_HWADDR_LEN ETHARP_HWADDR_LEN
50 #define ETH_HWADDR_LEN 6
54 #ifdef PACK_STRUCT_USE_INCLUDES
62 #ifdef PACK_STRUCT_USE_INCLUDES
66 #ifdef PACK_STRUCT_USE_INCLUDES
80 #ifdef PACK_STRUCT_USE_INCLUDES
84 #define SIZEOF_ETH_HDR (14 + ETH_PAD_SIZE)
86 #ifdef PACK_STRUCT_USE_INCLUDES
98 #ifdef PACK_STRUCT_USE_INCLUDES
102 #define SIZEOF_VLAN_HDR 4
103 #define VLAN_ID(vlan_hdr) (lwip_htons((vlan_hdr)->prio_vid) & 0xFFF)
144 #define LL_IP4_MULTICAST_ADDR_0 0x01
145 #define LL_IP4_MULTICAST_ADDR_1 0x00
146 #define LL_IP4_MULTICAST_ADDR_2 0x5e
149 #define LL_IP6_MULTICAST_ADDR_0 0x33
150 #define LL_IP6_MULTICAST_ADDR_1 0x33
154 #ifndef ETHADDR32_COPY
155 #define ETHADDR32_COPY(dst, src) SMEMCPY(dst, src, ETH_HWADDR_LEN)
160 #ifndef ETHADDR16_COPY
161 #define ETHADDR16_COPY(dst, src) SMEMCPY(dst, src, ETH_HWADDR_LEN)
164 #define eth_addr_cmp(addr1, addr2) (memcmp((addr1)->addr, (addr2)->addr, ETH_HWADDR_LEN) == 0)
Definition: ethernet.h:136
#define PACK_STRUCT_BEGIN
Definition: arch.h:242
Definition: ethernet.h:140
PACK_STRUCT_FIELD(u16_t type)
Definition: ethernet.h:124
#define ETH_PAD_SIZE
Definition: opt.h:605
Definition: ethernet.h:128
uint16_t u16_t
Definition: arch.h:121
Definition: ethernet.h:114
PACK_STRUCT_FLD_8(u8_t addr[ETH_HWADDR_LEN])
uint8_t type
Definition: UsbCore.h:184
PACK_STRUCT_FLD_S(struct eth_addr dest)
Definition: ethernet.h:126
Definition: ethernet.h:132
PACK_STRUCT_BEGIN struct eth_addr PACK_STRUCT_STRUCT
eth_type
Definition: ethernet.h:108
uint8_t u8_t
Definition: arch.h:119
Definition: ethernet.h:122
Definition: ethernet.h:71
Definition: ethernet.h:120
Definition: ethernet.h:134
Definition: ethernet.h:58
Definition: ethernet.h:110
#define PACK_STRUCT_END
Definition: arch.h:251
Definition: ethernet.h:130
Definition: ethernet.h:116
#define PACK_STRUCT_FLD_8(x)
Definition: arch.h:282
Definition: ethernet.h:118
#define ETH_HWADDR_LEN
Definition: ethernet.h:50
Definition: ethernet.h:138
Definition: ethernet.h:93
Definition: ethernet.h:112
PACK_STRUCT_FIELD(u16_t prio_vid)