diff options
author | Johannes Berg <johannes.berg@intel.com> | 2017-10-16 21:48:21 +0200 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2017-10-17 09:16:30 +0200 |
commit | 60f18ada41ef32e0554b4c7056d3868bcaa515be (patch) | |
tree | c9c41c392d051ac74a572636466047f01cf6f143 /backport/backport-include/linux | |
parent | c6db471aace2344cf0c0afe2625106389fcf608d (diff) |
backports: fully add netlink extack for generic netlink
The previous backport just made the code compatible, but removed
the extack functionality entirely.
By ignoring the setsockopt() and just assuming that userspace does
in fact support extack (which is true for all of wifi and in fact
all users of libnl), we can support full extack functionality even
on kernels that don't support it.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'backport/backport-include/linux')
-rw-r--r-- | backport/backport-include/linux/netlink.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/backport/backport-include/linux/netlink.h b/backport/backport-include/linux/netlink.h index 58fad589..44359918 100644 --- a/backport/backport-include/linux/netlink.h +++ b/backport/backport-include/linux/netlink.h @@ -11,6 +11,9 @@ struct netlink_ext_ack { const struct nlattr *bad_attr; u8 cookie[NETLINK_MAX_COOKIE_LEN]; u8 cookie_len; + + /* backport only field */ + const void *__bp_genl_real_ops; }; #define NL_SET_ERR_MSG(extack, msg) do { \ |