From 87adf3461f5833da88d397db63f4f274f5481f5a Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Fri, 18 Apr 2014 19:12:51 +0200 Subject: [PATCH] build: resolve compile error with Linux 3.15 Commit v3.15-rc1~141^2~97 changed the signature for cn_netlink_send. --- extensions/pknock/xt_pknock.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/extensions/pknock/xt_pknock.c b/extensions/pknock/xt_pknock.c index cb110ee..f754568 100644 --- a/extensions/pknock/xt_pknock.c +++ b/extensions/pknock/xt_pknock.c @@ -701,7 +701,11 @@ msg_to_userspace_nl(const struct xt_pknock_mtinfo *info, 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); +#endif kfree(m); #endif