summaryrefslogtreecommitdiffstats
path: root/src/shared/socket-netlink.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2024-01-12 11:49:35 +0100
committerLennart Poettering <lennart@poettering.net>2024-01-12 21:43:34 +0100
commitfa2bc6f1d7eae317ecfeb9d34881043e7ff7c0e8 (patch)
treec15b903366e6b123ea70795b89beab99fbd1d17e /src/shared/socket-netlink.h
parentsd-netlink: hook up nsid APIs (diff)
downloadsystemd-fa2bc6f1d7eae317ecfeb9d34881043e7ff7c0e8.tar.xz
systemd-fa2bc6f1d7eae317ecfeb9d34881043e7ff7c0e8.zip
socket-util: add netns_get_nsid() helper to show nsid of netns
Diffstat (limited to 'src/shared/socket-netlink.h')
-rw-r--r--src/shared/socket-netlink.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/shared/socket-netlink.h b/src/shared/socket-netlink.h
index 6256a831ba..2c06fbe3a7 100644
--- a/src/shared/socket-netlink.h
+++ b/src/shared/socket-netlink.h
@@ -42,3 +42,5 @@ DEFINE_TRIVIAL_CLEANUP_FUNC(struct in_addr_full*, in_addr_full_free);
int in_addr_full_new(int family, const union in_addr_union *a, uint16_t port, int ifindex, const char *server_name, struct in_addr_full **ret);
int in_addr_full_new_from_string(const char *s, struct in_addr_full **ret);
const char *in_addr_full_to_string(struct in_addr_full *a);
+
+int netns_get_nsid(int netnsfd, uint32_t *ret);