[PATCH] xtables-addons: build against 3.8.y

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Jan,

I see that xtables-addons 1.47.1 do not build against kernel 3.8.2,
because of ipv6_find_hdr() having moved to <net/ipv6.h>.  And this
include is missing from xt_SYSREQ.c:

extensions/xt_SYSRQ.c: In function 'sysrq_tg6':
extensions/xt_SYSRQ.c:251: xt_SYSRQ.c:251: error: implicit declaration \
	of function 'ipv6_find_ hdr'

The attached patch fixes that.

Please check.

 /Holger

xt_SYSRQ: include <net/ipv6.h>

ipv6_find_hdr() has moved to <net/ipv6.h> since kernel
v3.8.  It is necessary to include this header as well.

Signed-off-by: Holger Eitzenberger <holger@xxxxxxxxxxxxxxxx>

Index: xtables-addons-1.47.1/extensions/xt_SYSRQ.c
===================================================================
--- xtables-addons-1.47.1.orig/extensions/xt_SYSRQ.c
+++ xtables-addons-1.47.1/extensions/xt_SYSRQ.c
@@ -24,6 +24,7 @@
 #include <linux/crypto.h>
 #include <linux/scatterlist.h>
 #include <net/ip.h>
+#include <net/ipv6.h>
 #include "compat_xtables.h"
 
 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 19) && \

[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux