tools: ynl: create local nlmsg access helpers
authorJakub Kicinski <kuba@kernel.org>
Tue, 27 Feb 2024 22:30:21 +0000 (14:30 -0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 28 Feb 2024 23:25:42 +0000 (15:25 -0800)
commit0b3ece44220887e7cf1e7469867fdd8ce9986c16
treedfa600e55d7ce1599f6c66a779e53aeb2a2d9081
parent66fcdad0884223eb9dfa9b76161dca7917e6e03b
tools: ynl: create local nlmsg access helpers

Create helpers for accessing payloads of struct nlmsg.
Use them instead of the libmnl ones.

Acked-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Link: https://lore.kernel.org/r/20240227223032.1835527-5-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/ynl-gen-c.py