diff options
author | Jakub Kicinski <kuba@kernel.org> | 2024-02-27 23:30:30 +0100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-02-29 00:25:44 +0100 |
commit | 5ac6868daa0e34856506baf43c89e6d4fd5635c8 (patch) | |
tree | da009da00cc41528771a34f4afca6929c92d8034 /tools/net/ynl/lib/ynl.h | |
parent | tools: ynl: switch away from MNL_CB_* (diff) | |
download | linux-5ac6868daa0e34856506baf43c89e6d4fd5635c8.tar.xz 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 '')
-rw-r--r-- | tools/net/ynl/lib/ynl.h | 2 |
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; |