mirror of
https://github.com/breeze303/nss-packages.git
synced 2025-12-16 16:57:29 +00:00
nss-clients: netlink compatibility with kernel 6.6
This commit is contained in:
parent
fd81770c4c
commit
1d68a08b44
@ -258,3 +258,17 @@
|
||||
if (!ctl_tbl_hdr) {
|
||||
nss_connmgr_l2tpv2_info("Unable to register sysctl table for L2TP conn mgr\n");
|
||||
return -EFAULT;
|
||||
--- a/netlink/nss_nl.c
|
||||
+++ b/netlink/nss_nl.c
|
||||
@@ -463,7 +463,11 @@ struct nss_nlcmn *nss_nl_get_msg(struct
|
||||
/*
|
||||
* validate the common message header version & magic
|
||||
*/
|
||||
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(6, 6, 0))
|
||||
cm = info->userhdr;
|
||||
+#else
|
||||
+ cm = genl_info_userhdr(info);
|
||||
+#endif
|
||||
if (nss_nlcmn_chk_ver(cm, family->version) == false) {
|
||||
nss_nl_error("%d, %s: version mismatch (%d)\n", pid, family->name, cm->version);
|
||||
return NULL;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user