[comp.unix.wizards] Given a filehandle, how can I find source IP??

jap@convex.cl.msu.edu (Joe Porkka) (03/23/91)

Well, the subject says it all...

On a SUN, I am trying to track down the address of the machine
that telneted to me. The reason is that I want to be able
to open another connection going back the other way.

Iv'e tried peeking trough the kernel with kvm_getu and kvm_read,
and got down to the vnode struct, in hopes of tracking down
the socket information, and grap the IP address out of that.

Any ideas???