Re: netfilter & C++

2002-05-16 Thread Patrick Schaaf
On Thu, May 16, 2002 at 08:55:27AM +0200, Harald Welte wrote: > 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 return

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 'ipt_entry_

Re: netfilter & C++

2002-05-15 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: > /usr/i

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 af

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: Ple

RE: netfilter & C++

2002-05-15 Thread Glover George
al Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Dotan LiorSent: Wednesday, May 15, 2002 10:07 AMTo: '[EMAIL PROTECTED]'Subject: netfilter & C++ Hi, I'm trying to write a class in C++ that will retreive statistics from iptable in order t

netfilter & C++

2002-05-15 Thread Dotan Lior
Title: netfilter & C++ 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: /usr/include/linux/