aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/net/ynl/lib/ynl.h
diff options
context:
space:
mode:
authorJakub Kicinski <kuba@kernel.org>2024-02-27 14:30:30 -0800
committerJakub Kicinski <kuba@kernel.org>2024-02-28 15:25:44 -0800
commit5ac6868daa0e34856506baf43c89e6d4fd5635c8 (patch)
treeda009da00cc41528771a34f4afca6929c92d8034 /tools/net/ynl/lib/ynl.h
parenttools: ynl: switch away from MNL_CB_* (diff)
downloadwireguard-linux-5ac6868daa0e34856506baf43c89e6d4fd5635c8.tar.xz
wireguard-linux-5ac6868daa0e34856506baf43c89e6d4fd5635c8.zip
tools: ynl: stop using mnl socket helpers
Most libmnl socket helpers can be replaced by direct calls to the underlying libc API. We need portid, the netlink manpage suggests we bind() address of zero. Acked-by: Nicolas Dichtel <nicolas.dichtel@6wind.com> Link: https://lore.kernel.org/r/20240227223032.1835527-14-kuba@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/net/ynl/lib/ynl.h')
-rw-r--r--tools/net/ynl/lib/ynl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/net/ynl/lib/ynl.h b/tools/net/ynl/lib/ynl.h
index 4849c142fce0..dbeeef8ce91a 100644
--- a/tools/net/ynl/lib/ynl.h
+++ b/tools/net/ynl/lib/ynl.h
@@ -59,7 +59,7 @@ struct ynl_sock {
/* private: */
const struct ynl_family *family;
- struct mnl_socket *sock;
+ int socket;
__u32 seq;
__u32 portid;
__u16 family_id;