summaryrefslogtreecommitdiffstats
path: root/lib/libnetlink.c
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-17 14:59:00 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-17 14:59:00 +0000
commitfefb35b1e2e9e60637e9cbdd2a44f716054a5208 (patch)
treeb8b59752343c1f91cd1f23afffc2e6a753bff6c7 /lib/libnetlink.c
parentAdding upstream version 6.8.0. (diff)
downloadiproute2-upstream.tar.xz
iproute2-upstream.zip
Adding upstream version 6.9.0.upstream/6.9.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'lib/libnetlink.c')
-rw-r--r--lib/libnetlink.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/libnetlink.c b/lib/libnetlink.c
index 0164822..e2b284e 100644
--- a/lib/libnetlink.c
+++ b/lib/libnetlink.c
@@ -111,6 +111,10 @@ int nl_dump_ext_ack(const struct nlmsghdr *nlh, nl_ext_ack_fn_t errfn)
err_nlh = &err->msg;
}
+ if (tb[NLMSGERR_ATTR_MISS_TYPE])
+ fprintf(stderr, "Missing required attribute type %u\n",
+ mnl_attr_get_u32(tb[NLMSGERR_ATTR_MISS_TYPE]));
+
if (errfn)
return errfn(msg, off, err_nlh);