commit 9c6885a6cbdfa717750c45fe5a2c3f835752623c
parent f30b4e006488666ef10c399b6a809fc84066201f
Author: Tom Lebreux <me@tomlebreux.com>
Date: Sat, 18 Feb 2023 08:32:25 -0500
rt/+linux/socket: add sockaddr_nl
Signed-off-by: Tom Lebreux <me@tomlebreux.com>
Diffstat:
1 file changed, 8 insertions(+), 0 deletions(-)
diff --git a/rt/+linux/socket.ha b/rt/+linux/socket.ha
@@ -39,11 +39,19 @@ export type sockaddr_un = struct {
sun_path: [UNIX_PATH_MAX]char,
};
+export type sockaddr_nl = struct {
+ nl_family: sa_family_t,
+ nl_pad: u16,
+ nl_pid: u32,
+ nl_groups: u32,
+};
+
export type sockaddr = struct {
union {
in: sockaddr_in,
in6: sockaddr_in6,
un: sockaddr_un,
+ nl: sockaddr_nl,
},
};