Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 7503

SDK • Why not ETH_PAD_SIZE 2 in lwipopts_examples_common.h ?

$
0
0
Is there a good reason why the ETH_PAD_SIZE option is commented out in the shared lwipopts.h file for the wlan examples?

Code:

// #define ETH_PAD_SIZE                2
The LWIP website says
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.
... which sounds like a good idea?

Statistics: Posted by mjcross — Sat Jan 24, 2026 3:25 pm — Replies 1 — Views 44



Viewing all articles
Browse latest Browse all 7503

Trending Articles