diff mbox series

netlink: Add workaround for missing NLM_F_ACK_TLVS and NLM_F_CAPPED

Message ID 20231121184836.197219-1-marcel@holtmann.org (mailing list archive)
State New
Headers show
Series netlink: Add workaround for missing NLM_F_ACK_TLVS and NLM_F_CAPPED | expand

Checks

Context Check Description
tedd_an/pre-ci_am success Success
prestwoj/iwd-ci-makedistcheck success Make Distcheck
prestwoj/iwd-ci-build success Build - Configure
prestwoj/iwd-ci-makecheck success Make Check
prestwoj/iwd-ci-makecheckvalgrind success Make Check w/Valgrind
prestwoj/iwd-ci-clang success clang PASS
prestwoj/iwd-ci-testrunner success test-runner PASS

Commit Message

Marcel Holtmann Nov. 21, 2023, 6:48 p.m. UTC
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(+)

Comments

Marcel Holtmann Nov. 25, 2023, 7:04 p.m. UTC | #1
Hi,

> 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

I applied this patch.

Regards

Marcel
Grant Erickson Nov. 26, 2023, 6:24 p.m. UTC | #2
On Nov 21, 2023, at 10:48 AM, Marcel Holtmann <marcel@holtmann.org> wrote:
> 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.
> —

Marcel,

I can confirm that ell-0.61 builds with this final patch against my linux-4.9.212 / glibc-2.32 configuration.

Thank you!

Best,

Grant
diff mbox series

Patch

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,