Re: netfilter C++

2002-05-16 Thread Fabrice MARIE
Hello, On Wednesday 15 May 2002 23:06, Dotan Lior wrote: Hi, I'm trying to write a class in C++ that will retreive statistics from iptable in order to find out the traffic on each rule in the NAT table. The problem is that after including iptables.h whenever I'm compiling I get:

Re: netfilter C++

2002-05-16 Thread Harald Welte
On Thu, May 16, 2002 at 03:15:11PM +0800, Fabrice MARIE wrote: I probably didn't understand.. but is there any reason to explicitely cast the pointer to become a 'void *' when the declaration specifically says it is returning an 'ipt_entry_target *' ? Shouldn't it be casted to

RE: netfilter C++

2002-05-15 Thread Glover George
Title: Message Hey I am extremely interested in this class. I am right now needing the same thing, I just asked the question over in the netfilter list. You're question, is a little off topic, but I can help you a little. It can't do pointer arithmetic with a void * because it doesn't know

Re: netfilter C++

2002-05-15 Thread Harald Welte
On Wed, May 15, 2002 at 06:06:51PM +0300, Dotan Lior wrote: Hi, I'm trying to write a class in C++ that will retreive statistics from iptable in order to find out the traffic on each rule in the NAT table. The problem is that after including iptables.h whenever I'm compiling I get: Please

RE: netfilter C++

2002-05-15 Thread Dotan Lior
Title: RE: netfilter C++ On Wed, May 15, 2002 at 06:06:51PM +0300, Dotan Lior wrote: Hi, I'm trying to write a class in C++ that will retreive statistics from iptable in order to find out the traffic on each rule in the NAT table. The problem is that after including iptables.h whenever