]> git.ipfire.org Git - thirdparty/xtables-addons.git/commitdiff
xt_SYSRQ: fix compilation for Linux kernel version <= 2.6.19
authorJan Engelhardt <jengelh@medozas.de>
Fri, 29 Aug 2008 00:14:29 +0000 (20:14 -0400)
committerJan Engelhardt <jengelh@medozas.de>
Fri, 29 Aug 2008 00:27:09 +0000 (20:27 -0400)
extensions/compat_xtables.h
extensions/xt_SYSRQ.c

index 0284dfce9cee6cd9d4e87a1ea3b7833fd461050b..617314cc2b33c3a5d862e01e40f6ea69ea346f58 100644 (file)
@@ -28,6 +28,7 @@
 
 #if LINUX_VERSION_CODE <= KERNEL_VERSION(2, 6, 19)
 #      define neigh_hh_output xtnu_neigh_hh_output
+#      define IPPROTO_UDPLITE 136
 #endif
 
 #if LINUX_VERSION_CODE <= KERNEL_VERSION(2, 6, 24)
index cb12b9f1a4006655b2674bc3f6a6b9b6aee1fa65..86d2e34570617cb8f19db94ed3470f2b67252ac1 100644 (file)
@@ -50,7 +50,11 @@ static unsigned int sysrq_tg(const void *pdata, uint16_t len)
                return NF_DROP;
        }
 
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 19)
        handle_sysrq(c, NULL);
+#else
+       handle_sysrq(c, NULL, NULL);
+#endif
        return NF_ACCEPT;
 }