linux.socketModule
Linux kernel constants exposed under linux.socket.
Values are populated at build time from the kernel headers.Usage
local socket = require("linux.socket")
Tables
| af | Socket address families. |
| ip | IP-level option names (IP_*). |
| ipproto | IP-layer protocol numbers. |
| layout | Socket option payload layouts. |
| msg | Message flags for send/recv. |
| so | Socket-level option names (SO_*). |
| sock | Socket types (SOCK_STREAM, SOCK_DGRAM, …). |
| sol | Socket option levels (SOL_*). |
Tables in detail
- af
-
Socket address families.
Mirrors
AF_*defines in<linux/socket.h>. Keys are the kernel names with the prefix stripped:AF_<NAME>islinux.socket.af.<NAME>. - ip
-
IP-level option names (IP_).
Mirrors
IP_defines in<uapi/linux/in.h>. Keys are the kernel names with the prefix stripped:IP_<NAME>islinux.socket.ip.<NAME>. - ipproto
-
IP-layer protocol numbers.
Mirrors
IPPROTO_*defines in<uapi/linux/in.h>. Keys are the kernel names with the prefix stripped:IPPROTO_<NAME>islinux.socket.ipproto.<NAME>. - layout
-
Socket option payload layouts.
Layout descriptors (per-field offset/size/signedness) generated from
<uapi/linux/time_types.h>; consume viarequire("struct"). - msg
-
Message flags for send/recv.
Mirrors
MSG_*defines in<linux/socket.h>. Keys are the kernel names with the prefix stripped:MSG_<NAME>islinux.socket.msg.<NAME>. - so
-
Socket-level option names (SO_).
Mirrors
SO_defines in<uapi/asm-generic/socket.h>. Keys are the kernel names with the prefix stripped:SO_<NAME>islinux.socket.so.<NAME>. - sock
-
Socket types (SOCK_STREAM, SOCK_DGRAM, …).
Mirrors
SOCK_*defines in<linux/net.h>. Keys are the kernel names with the prefix stripped:SOCK_<NAME>islinux.socket.sock.<NAME>. - sol
-
Socket option levels (SOL_).
Mirrors
SOL_defines in<linux/socket.h>. Keys are the kernel names with the prefix stripped:SOL_<NAME>islinux.socket.sol.<NAME>.