Merge branch 'main' into next

Signed-off-by: David Ahern <dsahern@kernel.org>
This commit is contained in:
David Ahern
2023-11-22 19:38:34 +00:00
39 changed files with 90 additions and 2679 deletions

View File

@@ -727,13 +727,15 @@ int rtnl_dump_request_n(struct rtnl_handle *rth, struct nlmsghdr *n)
static int rtnl_dump_done(struct nlmsghdr *h,
const struct rtnl_dump_filter_arg *a)
{
int len = *(int *)NLMSG_DATA(h);
int len;
if (h->nlmsg_len < NLMSG_LENGTH(sizeof(int))) {
fprintf(stderr, "DONE truncated\n");
return -1;
}
len = *(int *)NLMSG_DATA(h);
if (len < 0) {
errno = -len;