[PATCH] netlink: Add workaround for missing NLM_F_ACK_TLVS and NLM_F_CAPPED
Marcel Holtmann <[email protected]> Tue, 21 Nov 2023 19:48:36 +0100
| Newsgroups | dev.linux.lists.ell |
|---|---|
| Message-ID | <[email protected]> |
The feature for NETLINK_EXT_ACK also adds two additional flags. These
are NLM_F_ACK_TLVS and NLM_F_CAPPED and need to be defined as well to
be able to used the extended ACK feature.
---
ell/netlink-private.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/ell/netlink-private.h b/ell/netlink-private.h
index 0a1b016d8887..fdb584e62652 100644
--- a/ell/netlink-private.h
+++ b/ell/netlink-private.h
@@ -27,6 +27,8 @@ enum nlmsgerr_attrs {
NLMSGERR_ATTR_MSG,
NLMSGERR_ATTR_OFFS,
};
+#define NLM_F_CAPPED 0x100
+#define NLM_F_ACK_TLVS 0x200
#endif
bool netlink_parse_ext_ack_error(const struct nlmsghdr *nlmsg,
--
2.42.0