tools: ynl: stop using mnl socket helpers
authorJakub Kicinski <kuba@kernel.org>
Tue, 27 Feb 2024 22:30:30 +0000 (14:30 -0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 28 Feb 2024 23:25:44 +0000 (15:25 -0800)
commit5ac6868daa0e34856506baf43c89e6d4fd5635c8
treeda009da00cc41528771a34f4afca6929c92d8034
parent50042e8051fe6246e188b24f0b9bed7822582435
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>
tools/net/ynl/lib/ynl-priv.h
tools/net/ynl/lib/ynl.c
tools/net/ynl/lib/ynl.h