mirror of
git://git.code.sf.net/p/xtables-addons/xtables-addons
synced 2025-09-06 04:35:12 +02:00
RAWNAT: make iptable_rawpost compile with 2.6.30-rc5
This commit is contained in:
@@ -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
|
||||||
|
@@ -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);
|
||||||
|
@@ -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);
|
||||||
|
Reference in New Issue
Block a user