ip6tables on sparc32: filter Table does not exist

2003-02-18 Thread Peter Keel
Hello 

I finally managed to compile 2.4.20 on my SS10. Since I recently got 
2001:8A8:30:30::/60  I now definitely want to do ipv6. It works, BUT: 

josephine:~# ip6tables -L 
ip6tables v1.2.6a: can't initialize ip6tables table `filter': Table 
does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.

This happens with the stock kernel, but also with the usagi-patch.
So there's definitly something amess with the kernel itself. 

I did a quick google, and found further reference to the problem, 
but no solution. As it appears, the HPPA-architecture has the same
problem, and sparc64 as well (CC to Aaron Sethman which reported 
it for Sparc64). 

Now the question: Does anyone know of a solution, some super-secret
magic patch, or at least, does anyone know who I should bugger? ;)=

Cheers
Peter
-- 
Those who give up essential liberties for temporary safety deserve 
neither liberty nor safety. -- Benjamin Franklin



Re: ip6tables on sparc32: filter Table does not exist

2003-02-18 Thread Fabio Massimo Di Nitto

Hi

On Tue, 18 Feb 2003, Peter Keel wrote:

 Hello

 I finally managed to compile 2.4.20 on my SS10. Since I recently got
 2001:8A8:30:30::/60  I now definitely want to do ipv6.

Welcome to the club :-)

 It works, BUT:

 josephine:~# ip6tables -L
 ip6tables v1.2.6a: can't initialize ip6tables table `filter': Table
 does not exist (do you need to insmod?)
 Perhaps iptables or your kernel needs to be upgraded.

Rhetoric question: how did you compile ipv6 netfilters???

if they are modules are you sure they are loaded correctly?
a lsmod would help

 Now the question: Does anyone know of a solution, some super-secret
 magic patch, or at least, does anyone know who I should bugger? ;)=

try also to on debian-ipv6 mailing list. It is probably more appropriate.

Fabio

-- 
drac (1.11-7) unstable; urgency=low
  * added IPv6 patch from the great IPv6 Team

 -- Noel Koethe [EMAIL PROTECTED]  Sun,  9 Feb 2003 19:33:00 +0100



Re: ip6tables on sparc32: filter Table does not exist

2003-02-18 Thread Aaron Sethman
On Tue, 18 Feb 2003, Peter Keel wrote:

 Hello

 I finally managed to compile 2.4.20 on my SS10. Since I recently got
 2001:8A8:30:30::/60  I now definitely want to do ipv6. It works, BUT:

 josephine:~# ip6tables -L
 ip6tables v1.2.6a: can't initialize ip6tables table `filter': Table
 does not exist (do you need to insmod?)
 Perhaps iptables or your kernel needs to be upgraded.

 This happens with the stock kernel, but also with the usagi-patch.
 So there's definitly something amess with the kernel itself.
Here is the patch I used to get it to work on 2.4.20.  I forget who sent
me the original patch for 2.4.19, but here goes..

Regards,

Aaron

--- net/ipv6/netfilter/ip6_tables.c.orig2002-11-28 18:53:15.0 
-0500
+++ net/ipv6/netfilter/ip6_tables.c 2003-02-10 04:32:43.0 -0500
@@ -101,10 +101,8 @@
unsigned int hook_entry[NF_IP6_NUMHOOKS];
unsigned int underflow[NF_IP6_NUMHOOKS];

-   char padding[SMP_ALIGN((NF_IP6_NUMHOOKS*2+2)*sizeof(unsigned int))];
-
/* ip6t_entry tables: one per CPU */
-   char entries[0];
+   char entries[0] cacheline_aligned;;
 };

 static LIST_HEAD(ip6t_target);
@@ -1450,8 +1448,7 @@
int ret;
struct ip6t_table_info *newinfo;
static struct ip6t_table_info bootstrap
-   = { 0, 0, 0, { 0 }, { 0 }, { }, { } };
-
+   = { 0, 0, 0, { 0 }, { 0 }, { } };
MOD_INC_USE_COUNT;
newinfo = vmalloc(sizeof(struct ip6t_table_info)
  + SMP_ALIGN(table-table-size) * smp_num_cpus);