Lunatik

linux.rtnetlinkModule

Linux kernel constants exposed under linux.rtnetlink.

Values are populated at build time from the kernel headers.

Usage

local rtnetlink = require("linux.rtnetlink")

Tables

fr_act rtnetlink FIB rule actions (FR_ACT_*).
fra rtnetlink FIB rule attribute types (FRA_*).
ifa rtnetlink address attribute types (IFA_*).
ifla rtnetlink link attribute types (IFLA_*).
layout rtnetlink message header layouts.
rta rtnetlink route attribute types (RTA_*).
rtm rtnetlink message types (RTM_*).
rtn rtnetlink route types (RTN_*).
rtprot rtnetlink route origins (RTPROT_*).
scope rtnetlink route scopes (RT_SCOPE_*).
table rtnetlink routing table ids (RT_TABLE_*).

Tables in detail

fr_act
rtnetlink FIB rule actions (FR_ACT_). Mirrors FR_ACT_ defines in <uapi/linux/fib_rules.h>. Keys are the kernel names with the prefix stripped: FR_ACT_<NAME> is linux.rtnetlink.fr_act.<NAME>.
fra
rtnetlink FIB rule attribute types (FRA_). Mirrors FRA_ defines in <uapi/linux/fib_rules.h>. Keys are the kernel names with the prefix stripped: FRA_<NAME> is linux.rtnetlink.fra.<NAME>.
ifa
rtnetlink address attribute types (IFA_). Mirrors IFA_ defines in <uapi/linux/if_addr.h>. Keys are the kernel names with the prefix stripped: IFA_<NAME> is linux.rtnetlink.ifa.<NAME>.
ifla
rtnetlink link attribute types (IFLA_). Mirrors IFLA_ defines in <uapi/linux/if_link.h>. Keys are the kernel names with the prefix stripped: IFLA_<NAME> is linux.rtnetlink.ifla.<NAME>.
layout
rtnetlink message header layouts. Layout descriptors (per-field offset/size/signedness) generated from <uapi/linux/rtnetlink.h>; consume via require("struct").
rta
rtnetlink route attribute types (RTA_). Mirrors RTA_ defines in <uapi/linux/rtnetlink.h>. Keys are the kernel names with the prefix stripped: RTA_<NAME> is linux.rtnetlink.rta.<NAME>.
rtm
rtnetlink message types (RTM_). Mirrors RTM_ defines in <uapi/linux/rtnetlink.h>. Keys are the kernel names with the prefix stripped: RTM_<NAME> is linux.rtnetlink.rtm.<NAME>.
rtn
rtnetlink route types (RTN_). Mirrors RTN_ defines in <uapi/linux/rtnetlink.h>. Keys are the kernel names with the prefix stripped: RTN_<NAME> is linux.rtnetlink.rtn.<NAME>.
rtprot
rtnetlink route origins (RTPROT_). Mirrors RTPROT_ defines in <uapi/linux/rtnetlink.h>. Keys are the kernel names with the prefix stripped: RTPROT_<NAME> is linux.rtnetlink.rtprot.<NAME>.
scope
rtnetlink route scopes (RT_SCOPE_). Mirrors RT_SCOPE_ defines in <uapi/linux/rtnetlink.h>. Keys are the kernel names with the prefix stripped: RT_SCOPE_<NAME> is linux.rtnetlink.scope.<NAME>.
table
rtnetlink routing table ids (RT_TABLE_). Mirrors RT_TABLE_ defines in <uapi/linux/rtnetlink.h>. Keys are the kernel names with the prefix stripped: RT_TABLE_<NAME> is linux.rtnetlink.table.<NAME>.