How to find the local part of a network connection ?

Werner Almesberger almesber at nessie.cs.id.ethz.ch
Tue May 7 02:40:05 AEST 1991


Is there a way to find out which process is the local part of a certain
tcp connection ?  Right now I'm tracing a problem where a yet unidentified
program leaves "zombie" links (they stay in CLOSE_WAIT and don't go away)
and find myself once again wondering why such a tool is missing ...

I've looked at several variants of the 'ofiles' program without finding
something that seems to be appropriate for IRIX 3.3. Has anyone ported it
or written something comparable ?

I've already tried to write a program that scans all processes for open
sockets myself, but I can't figure out how I can get the file table entries
when I have a process' u area. At least the content of u_ofile doesn't look
like a pointer ...

Any help would be greatly appreciated.

- Werner

-- 
--------------------------------------------------------------------------
| Werner Almesberger, ETH Zuerich, CH      almesber at nessie.cs.id.ethz.ch |
| BITNET: ALMESBER at CZHETH5A  HEPNET/CHADNET: [20579::]57414::ALMESBERGER |
--------------------------------------------------------------------------



More information about the Comp.sys.sgi mailing list