linux.ethModule
Linux kernel constants exposed under linux.eth.
Values are populated at build time from the kernel headers. Ethernet lengths and MTU bounds (ETH_HLEN, ETH_ALEN, …), beside the protocol IDs in proto.
Mirrors ETH_* defines in <uapi/linux/if_ether.h>.
Keys are the kernel names with the prefix stripped: ETH_<NAME> is linux.eth.<NAME>.
Usage
local eth = require("linux.eth")
Tables
| proto | Ethernet protocol IDs. |