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>islinux.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>islinux.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>islinux.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>islinux.rtnetlink.ifla.<NAME>. - layout
-
rtnetlink message header layouts.
Layout descriptors (per-field offset/size/signedness) generated from
<uapi/linux/rtnetlink.h>; consume viarequire("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>islinux.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>islinux.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>islinux.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>islinux.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>islinux.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>islinux.rtnetlink.table.<NAME>.