]> git.ipfire.org Git - thirdparty/iproute2.git/commit
libnetlink: add offset for nl_dump_ext_ack_done
authorHangbin Liu <liuhangbin@gmail.com>
Tue, 27 Sep 2022 10:21:06 +0000 (18:21 +0800)
committerDavid Ahern <dsahern@kernel.org>
Wed, 28 Sep 2022 03:18:49 +0000 (21:18 -0600)
commit80059fa5c5ed5b91e4239163578b37cf829d8772
tree8e6cd01d1b17e32911163d2d9213336a6a9001b1
parent08e6ee96b5751b5b176707e10594b011a746b009
libnetlink: add offset for nl_dump_ext_ack_done

There is no rule to have an error code after NLMSG_DONE msg. The only reason
we has this offset is that kernel function netlink_dump_done() has an error
code followed by the netlink message header.

Making nl_dump_ext_ack_done() has an offset parameter. So we can adjust
this for NLMSG_DONE message without error code.

Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
Signed-off-by: David Ahern <dsahern@kernel.org>
include/libnetlink.h
lib/libnetlink.c
lib/mnl_utils.c