I am hunting around in kmem using kvm_read....
I wish to find the (struct file *) corresponding to a
particular (struct tcp *).
I find the address to the (struct tcp) using "ndd /dev/tcp tcp_status".
I then search into the file table to find the vnode. This will tell
me where the stream is. But I don't understand streams! How can I follow
the stream structures to find the (struct tcp)?
Any ideas/solutions? (Please email me direct).