ETH_PAD_SIZE is only used within LwIP.
 
Symbols
loading...
Files
loading...

ETH_PAD_SIZE macro

ETH_PAD_SIZE: number of bytes added before the ethernet header to ensure alignment of payload after that header. Since the header is 14 bytes long, without this padding e.g. addresses in the IP header will not be aligned on a 32-bit boundary, so setting this to 2 can speed up 32-bit-platforms.

Syntax

#define ETH_PAD_SIZE 0

References

LocationText
opt.h:692
#define ETH_PAD_SIZE 0
ethernet.h:77
#if ETH_PAD_SIZE
ethernet.h:89
#define SIZEOF_ETH_HDR (14 + ETH_PAD_SIZE)
opt.h:1530
#define PBUF_LINK_HLEN (14 + ETH_PAD_SIZE)