RAWNAT: make iptable_rawpost compile with 2.6.30-rc5

This commit is contained in:
Jan Engelhardt
2009-05-15 18:35:53 +02:00
parent 137ecb9814
commit 49e59a6dce
3 changed files with 7 additions and 0 deletions

View File

@@ -1,5 +1,8 @@
- RAWNAT: make iptable_rawpost compile with 2.6.30-rc5
Xtables-addons 1.15 (April 30 2009) Xtables-addons 1.15 (April 30 2009)
=================================== ===================================
- build: add kernel version check to configure - build: add kernel version check to configure

View File

@@ -69,7 +69,9 @@ static int __init rawpost6_table_init(void)
{ {
int ret; int ret;
#if LINUX_VERSION_CODE <= KERNEL_VERSION(2, 6, 29)
rwlock_init(&rawpost6_itable.lock); rwlock_init(&rawpost6_itable.lock);
#endif
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 25) #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 25)
rawpost6_ptable = ip6t_register_table(&init_net, &rawpost6_itable, rawpost6_ptable = ip6t_register_table(&init_net, &rawpost6_itable,
&rawpost6_initial.repl); &rawpost6_initial.repl);

View File

@@ -70,7 +70,9 @@ static int __init rawpost4_table_init(void)
{ {
int ret; int ret;
#if LINUX_VERSION_CODE <= KERNEL_VERSION(2, 6, 29)
rwlock_init(&rawpost4_itable.lock); rwlock_init(&rawpost4_itable.lock);
#endif
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 25) #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 25)
rawpost4_ptable = ipt_register_table(&init_net, &rawpost4_itable, rawpost4_ptable = ipt_register_table(&init_net, &rawpost4_itable,
&rawpost4_initial.repl); &rawpost4_initial.repl);