mirror of
git://git.code.sf.net/p/xtables-addons/xtables-addons
synced 2025-09-08 05:34:58 +02:00
build: resolve compile error with Linux 3.15
Commit v3.15-rc1~141^2~97 changed the signature for cn_netlink_send.
This commit is contained in:
@@ -701,7 +701,11 @@ msg_to_userspace_nl(const struct xt_pknock_mtinfo *info,
|
|||||||
|
|
||||||
memcpy(m + 1, &msg, m->len);
|
memcpy(m + 1, &msg, m->len);
|
||||||
|
|
||||||
|
#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 15, 0)
|
||||||
|
cn_netlink_send(m, 0, multicast_group, GFP_ATOMIC);
|
||||||
|
#else
|
||||||
cn_netlink_send(m, multicast_group, GFP_ATOMIC);
|
cn_netlink_send(m, multicast_group, GFP_ATOMIC);
|
||||||
|
#endif
|
||||||
|
|
||||||
kfree(m);
|
kfree(m);
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user