I am currently going through the netstat code, and I see it makes a lot of use of kvm. I take it that the preferred method for looking up kernel data would be sysctl.
Now, I am stuck in the kvm code. I have no idea where I can find a list of kernel symbols that can be placed into nl struct. Is there is man page or header file that lists the kernel symbols and what they represent? sysctl has very good documentation and makes finding sysctl symbols easy. Thanks, Brian