Files
Pavel Labath 64b16a0e4a [libc] Add macros and <linux/if_ether.h> include to <net/ethernet.h> (#242242)
This makes <net/ethernet.h> include <linux/if_ether.h> and adds
definitions for the ETHER_* length macros:
- ETHER_ADDR_LEN
- ETHER_TYPE_LEN
- ETHER_CRC_LEN
- ETHER_HDR_LEN
- ETHER_MIN_LEN
- ETHER_MAX_LEN
- ETHER_MAX_LEN_JUMBO

I'm using public_includes for <linux/if_ether.h>. It is fine for now,
since <net/ethernet.h> is currently only enabled on Linux. If that
changes, we'll need to figure out what to do with it. I'd probably go
with something declarative, like adding a 'guard:' field to the
public_includes list.

Assisted-by: Gemini
2026-11-13 15:45:10 +01:00
..