Click to See Complete Forum and Search --> : Netfilter functions and structures..


c_guy
06-12-2003, 09:03 PM
I'm trying to port a 2.2 kernel module to the new netfilter 2.4 code but I'm having some difficulty finding the definitions for some of the structs and function calls. I'm hoping someone knows where I can find some very specific information about the functions and macro's used and available in the new netfilter code. I have poured over the netfiler website and cannot find the information I need. Looking for the definition of NIPQUAD, and IP_NF_ASSERT. Specifically. These would be a good start, and then I'll go from there..

Thanks for any help...

(c)guy

stoe
06-12-2003, 09:16 PM
what do you mean by definition? what they do in english or what the code actually is?

if you just want the code, goto http://lxr.linux.no/
click "browse the code" at the top, goto identifier search, then enter whatever your looking for. it'll search the linux kernel code for the identifier and take you to the definition and/or places the identifer is used. in general, much quicker and more useful than grepping.

i checked for both the things you asked for, both come up as the first result.

HTH

c_guy
06-13-2003, 07:24 AM
Thanks a million, that's a great start, but I also need the 'what this does' in plain english. I can read the code, but that doesn't give me all the answers I need.

Any other suggestions...

stoe
06-13-2003, 10:17 AM
i haven't personally looked much at the networking portion of the kernel so i can't tell you much about it from my own experiences. however, the two orielly books do have sections on networking.

Linux Device Drivers, 2nd Edition
See Chapter 14
Online Edition
http://www.xml.com/ldd/chapter/book/index.html

Understanding the Linux Kernel, 2nd Edition
See Chapter 18
No Online Edition That I Know Of