xt_SYSRQ: fix compilation for Linux kernel version <= 2.6.19

This commit is contained in:
Jan Engelhardt
2008-08-28 20:14:29 -04:00
parent fd9c6ffb03
commit 6737682e82
2 changed files with 5 additions and 0 deletions

View 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)

View 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;
}