Re: how ipfw firewall is implemented in the kernel

2009-01-14 Thread Biks N
Thanks a lot! That was really very helpful!!! On Wed, Jan 14, 2009 at 1:42 PM, Max Laier wrote: > On Wednesday 14 January 2009 18:32:07 Biks N wrote: >> Hi, >> >> Can anyone please help me understand how the IPFW firewall is >> implemented in the kernel. >> >

how ipfw firewall is implemented in the kernel

2009-01-14 Thread Biks N
Hi, Can anyone please help me understand how the IPFW firewall is implemented in the kernel. I have created new ACTIONS in ipfw. I have already implemented in the userland. Now i need to check the IPFW rule list (in ip_input.c and in ip_output.c) and call a custom routine if there is a match to

Need to optimize cutstom kernel hacks

2008-11-01 Thread Biks N
Hi, To get started with FreeBSD kernel, I have been working on IP Packet compression. After numerous crashes and failures now everything looks good and stable. I am using kernel zlib routines to compress payload. However I think my implementation is not efficient at all. Here are the steps I am

Re: retrive data from mbuf chain

2008-02-15 Thread Biks N
Please ignore my previous post. I was having problem because I didn't allocate memory to my_data_copy. Also, the correct usage is: m_copydata( m, 0, m->m_pkthdr.len , (caddr_t) my_data_copy); thanks On Tue, Feb 12, 2008 at 12:05 PM, Biks N <[EMAIL PROTECTED]> wrote: > Hi, t

Re: retrive data from mbuf chain

2008-02-12 Thread Biks N
nel: current process = 154 (ping) Feb 12 11:36:09 bsd1 /kernel: interrupt mask= Feb 12 11:36:09 bsd1 /kernel: I am using "ping -s 1200 host" to send larger packets so that system creates at least 2 mbufs. -------- On Feb 7, 2008 3:26 PM, Sam Leffler <[

Re: retrive data from mbuf chain

2008-02-07 Thread Biks N
On Feb 7, 2008 3:26 PM, Sam Leffler <[EMAIL PROTECTED]> wrote: > > Biks N wrote: > > Hi, > > > > I am new to FreeBSD kernel programming. > > > > Currently I am trying to work on mbuf data manupulation. > > > > >From my understanding: dat

retrive data from mbuf chain

2008-02-07 Thread Biks N
Hi, I am new to FreeBSD kernel programming. Currently I am trying to work on mbuf data manupulation. >From my understanding: data (payload) is stored into one or more mufs which are chained together through m_next pointer. Now, I need to retrive all data in mbuf chain ( mbufs linked by m_next).

Re: Using userland library in Kernel

2007-08-10 Thread Biks N
Thanks to everyone :) On 8/8/07, Craig Boston <[EMAIL PROTECTED]> wrote: > On Wed, Aug 08, 2007 at 11:23:25AM -0500, Biks N wrote: > > I am new to FreeBSD kernel programming and I am trying to use userland > > library (zlib) in FreeBSD kernel. But I am not sure if zlib li

Using userland library in Kernel

2007-08-08 Thread Biks N
Hi, I am new to FreeBSD kernel programming and I am trying to use userland library (zlib) in FreeBSD kernel. But I am not sure if zlib library is linkable from the kernel. I would really appreciate if someone can point me to right direction. I am using 6.2-RELEASE. thanks Biks _