linux-stable/tools/net/ynl/lib
Jakub Kicinski 997c7abd55 tools: ynl: don't ignore errors in NLMSG_DONE messages
[ Upstream commit a44f2eb106 ]

NLMSG_DONE contains an error code, it has to be extracted.
Prior to this change all dumps will end in success,
and in case of failure the result is silently truncated.

Fixes: e4b48ed460 ("tools: ynl: add a completely generic client")
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Reviewed-by: Donald Hunter <donald.hunter@gmail.com>
Link: https://lore.kernel.org/r/20240420020827.3288615-1-kuba@kernel.org
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-05-02 16:35:17 +02:00
..
.gitignore tools: net: add __pycache__ to gitignore 2023-02-24 11:55:47 -08:00
__init__.py tools/net/ynl: Add support for create flags 2023-08-27 17:17:10 -07:00
Makefile tools: ynl: user space helpers 2023-06-06 12:31:31 -07:00
nlspec.py tools/net/ynl: Add 'sub-message' attribute decoding to ynl 2023-12-18 14:39:43 -08:00
ynl-priv.h tools: ynl: move private definitions to a separate header 2023-12-05 20:08:33 -08:00
ynl.c tools: ynl: fix handling of multiple mcast groups 2024-02-28 15:24:34 -08:00
ynl.h tools: ynl-gen: support fixed headers in genetlink 2023-12-14 17:51:21 -08:00
ynl.py tools: ynl: don't ignore errors in NLMSG_DONE messages 2024-05-02 16:35:17 +02:00