Re: Cannot compile my Xtables module

2009-05-18 Thread pradeep singh
On Sun, May 17, 2009 at 9:43 PM, Bartek Dolewski dol...@gmail.com wrote: Thanks guys for help. Now I`ve rewrited whole code based on xt_iprange.c file from net/netfilter/ There is still some error messages, which does not provide me any usefull information. For example this is my file

Fwd: Cannot compile my Xtables module

2009-05-17 Thread Bartek Dolewski
-- Forwarded message -- From: Bartek Dolewski dol...@gmail.com Date: 2009/5/17 Subject: Re: Cannot compile my Xtables module To: pradeep singh pradeep.raut...@gmail.com Thanks guys for help. Now I`ve rewrited whole code based on xt_iprange.c file from net/netfilter

Re: Cannot compile my Xtables module

2009-04-22 Thread Vishal Thanki
There should not be st_mtdtor in line 102, it should be xt_mtdtor (i think). Apart from there, I suggest you use proper typecast when you dereferenct void *. For example, in line 80, you should assign par-matchinfo to info with proper typecasting (of type struct xt_ipaddr_mtinfo *). Hope that

Re: Cannot compile my Xtables module

2009-04-22 Thread pradeep singh
On Wed, Apr 22, 2009 at 12:55 PM, Vishal Thanki vishaltha...@gmail.com wrote: There should not be st_mtdtor in line 102, it should be xt_mtdtor (i think). Apart from there, I suggest you use proper typecast when you dereferenct void *. For example, in line 80, you should assign par-matchinfo

Cannot compile my Xtables module

2009-04-21 Thread Bartek Dolewski
Hi there, I guess this is more c programming trouble than kernel code but maybe I`m wrong. I`ve started with Netfilter/Xtables stuff so I write below code using some resources. When I type make I can see these error messages: LD /media/ubuntu/home/bartek/ModuĊ‚y/iptables/built-in.o CC [M]