OpenCloudOS-Kernel/tools/net/ynl/lib
Jakub Kicinski 6a65f015ee tools: ynl: don't ignore errors in NLMSG_DONE messages
[ Upstream commit a44f2eb106a46f2275a79de54ce0ea63e4f3d8c8 ]

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:32:36 +02:00
..
.gitignore tools: net: add __pycache__ to gitignore 2023-02-24 11:55:47 -08:00
Makefile tools: ynl: user space helpers 2023-06-06 12:31:31 -07:00
__init__.py tools/net/ynl: Add support for create flags 2023-08-27 17:17:10 -07:00
nlspec.py tools/ynl: Add mcast-group schema parsing to ynl 2023-08-27 17:17:10 -07:00
ynl.c tools: ynl: fix handling of multiple mcast groups 2024-03-06 14:48:36 +00:00
ynl.h tools: ynl: user space helpers 2023-06-06 12:31:31 -07:00
ynl.py tools: ynl: don't ignore errors in NLMSG_DONE messages 2024-05-02 16:32:36 +02:00