Re: pfil on bridge interface, looking for ether_header

2006-11-02 Thread Andrew Thompson
On Thu, Nov 02, 2006 at 05:45:50PM -0800, Kevin Sanders wrote: > I've written a kernel module that has pfil_add_hook'ed into the pfil > framework. When my input packet filter function is called, I can > mtod(*m, struct IP *) to the IP header, but haven't found a way to > find the original ethernet

pfil on bridge interface, looking for ether_header

2006-11-02 Thread Kevin Sanders
I've written a kernel module that has pfil_add_hook'ed into the pfil framework. When my input packet filter function is called, I can mtod(*m, struct IP *) to the IP header, but haven't found a way to find the original ethernet header. (*m)->m_pkthdr.header always seems to be NULL (I'm not even

Re: Virtual Network Interfaces

2006-11-02 Thread Andrew Thompson
On Thu, Nov 02, 2006 at 06:12:22PM +0100, 'Jeremie Le Hen' wrote: > Hi Raymond, > > On Tue, Oct 31, 2006 at 11:10:47AM -0500, Raymond Wagner wrote: > > Your other method is that I keep NAT on the internal interface as normal, > > and then create VLANs, bridged to the external interface, to each co

Re: Virtual Network Interfaces

2006-11-02 Thread 'Jeremie Le Hen'
Hi Raymond, On Tue, Oct 31, 2006 at 11:10:47AM -0500, Raymond Wagner wrote: > Your other method is that I keep NAT on the internal interface as normal, > and then create VLANs, bridged to the external interface, to each computer > with an external IP. Those machines would communicate as normal on

Re: Reentrant problem with inet_ntoa in the kernel

2006-11-02 Thread Brooks Davis
On Thu, Nov 02, 2006 at 08:26:27AM +, . wrote: > Hi, > > I am confused by the use of inet_ntoa function in the kernel. > > The function inet_ntoa in the /sys/libkern/inet_ntoa.c uses a static array > static char buf[4 * sizeof "123"]; > to store the result. And it returns the address of the a

Zoneli State / Nttcp client.

2006-11-02 Thread sivakumar.subramani
Hi, I have a script where we start a nttcp for some 500 nttcp client in back ground. After some time I could see the nttcp clients are listed in the TOP command as "Zoneli" state. Can any one please let me know what is meant by Zoneli state? Test Script: = count=1 while [ $count -le 2000

Re: Reentrant problem with inet_ntoa in the kernel

2006-11-02 Thread Max Laier
On Thursday 02 November 2006 11:32, LI Xin wrote: > VANHULLEBUS Yvan wrote: > > On Thu, Nov 02, 2006 at 06:19:43PM +0800, LI Xin wrote: > > [.] > > > >> Sounds like a workaround to me and in theory that is insufficient > >> for a MPSAFE protection. Here is a patch which reduces the chance > >>

Re: Reentrant problem with inet_ntoa in the kernel

2006-11-02 Thread LI Xin
VANHULLEBUS Yvan wrote: > On Thu, Nov 02, 2006 at 06:19:43PM +0800, LI Xin wrote: > [.] >> Sounds like a workaround to me and in theory that is insufficient for a >> MPSAFE protection. Here is a patch which reduces the chance where we >> get a race. > > Hi. > > This patch will allow multiple

Re: Reentrant problem with inet_ntoa in the kernel

2006-11-02 Thread VANHULLEBUS Yvan
On Thu, Nov 02, 2006 at 06:19:43PM +0800, LI Xin wrote: [.] > Sounds like a workaround to me and in theory that is insufficient for a > MPSAFE protection. Here is a patch which reduces the chance where we > get a race. Hi. This patch will allow multiple calls to inet_ntoa int the same functi

Re: Reentrant problem with inet_ntoa in the kernel

2006-11-02 Thread LI Xin
Max Laier wrote: > On Thursday 02 November 2006 09:26, . wrote: >> Hi, >> >> I am confused by the use of inet_ntoa function in the kernel. >> >> The function inet_ntoa in the /sys/libkern/inet_ntoa.c uses a static >> array static char buf[4 * sizeof "123"]; >> to store the result. And it returns th

Re: Reentrant problem with inet_ntoa in the kernel

2006-11-02 Thread Max Laier
On Thursday 02 November 2006 09:26, . wrote: > Hi, > > I am confused by the use of inet_ntoa function in the kernel. > > The function inet_ntoa in the /sys/libkern/inet_ntoa.c uses a static > array static char buf[4 * sizeof "123"]; > to store the result. And it returns the address of the array to

Reentrant problem with inet_ntoa in the kernel

2006-11-02 Thread .
Hi, I am confused by the use of inet_ntoa function in the kernel. The function inet_ntoa in the /sys/libkern/inet_ntoa.c uses a static array static char buf[4 * sizeof "123"]; to store the result. And it returns the address of the array to the caller. I think this inet_ntoa is not reentrant, th