Lunatik

linux.netlinkModule

Linux kernel constants exposed under linux.netlink.

Values are populated at build time from the kernel headers.

Usage

local netlink = require("linux.netlink")

Tables

align Netlink wire alignment (NLMSG_ALIGNTO).
flag Netlink message flags (NLM_F_*).
layout Netlink header layouts.
proto Netlink protocol numbers.
type Special netlink message types.

Tables in detail

align
Netlink wire alignment (NLMSG_ALIGNTO). Mirrors NLMSG_* defines in <uapi/linux/netlink.h>. Keys are the kernel names with the prefix stripped: NLMSG_<NAME> is linux.netlink.align.<NAME>.
flag
Netlink message flags (NLM_F_). Mirrors NLM_F_ defines in <uapi/linux/netlink.h>. Keys are the kernel names with the prefix stripped: NLM_F_<NAME> is linux.netlink.flag.<NAME>.
layout
Netlink header layouts. Layout descriptors (per-field offset/size/signedness) generated from <uapi/linux/netlink.h>; consume via require("struct").
proto
Netlink protocol numbers. Mirrors NETLINK_* defines in <uapi/linux/netlink.h>. Keys are the kernel names with the prefix stripped: NETLINK_<NAME> is linux.netlink.proto.<NAME>.
type
Special netlink message types. Mirrors NLMSG_* defines in <uapi/linux/netlink.h>. Keys are the kernel names with the prefix stripped: NLMSG_<NAME> is linux.netlink.type.<NAME>.