Re: freeBSD /ipfw/ divert socket

2006-04-24 Thread Kelly Yancey
On Mon, 24 Apr 2006, Kelly Yancey wrote: > On Fri, 21 Apr 2006, Amit Mondal wrote: > > > Hi All, > > > > I need a little help with FreeBSD Kernel stuff. I wanna use Divert Socket to > > sniff IP packet in FreeBSD. > > For that I have compiled the kernel with options IPDIVERT and everything is > >

Re: freeBSD /ipfw/ divert socket

2006-04-24 Thread Kelly Yancey
On Fri, 21 Apr 2006, Amit Mondal wrote: > Hi All, > > I need a little help with FreeBSD Kernel stuff. I wanna use Divert Socket to > sniff IP packet in FreeBSD. > For that I have compiled the kernel with options IPDIVERT and everything is > ok. > > Now, when I am not really sniffing and re-injecti

Re: freeBSD /ipfw/ divert socket

2006-04-21 Thread Guy Helmer
Amit Mondal wrote: Hi All, I need a little help with FreeBSD Kernel stuff. I wanna use Divert Socket to sniff IP packet in FreeBSD. For that I have compiled the kernel with options IPDIVERT and everything is ok. Now, when I am not really sniffing and re-injecting the packet back to the network

Re: freeBSD /ipfw/ divert socket

2006-04-20 Thread John-Mark Gurney
Amit Mondal wrote this message on Fri, Apr 21, 2006 at 00:44 -0500: > Now, when I am not really sniffing and re-injecting the packet back to the > network stack, it is basically dropping all the packets. But I want it > pass-through it, when no application is reading at divert socket. My Are there

RE: freeBSD /ipfw/ divert socket

2006-04-20 Thread ShouYan Mao
No, if no application is reading from divert socket, kernel will drop it! A divert socket is like a hole in the net system. Best Regards Shouyan -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Amit Mondal Sent: 2006年4月21日 13:44 To: freebsd-net@freebsd.org