Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!crdgw1!uunet!mcsun!cernvax!chx400!bernina!almesber From: almesber@nessie.cs.id.ethz.ch (Werner Almesberger) Newsgroups: comp.sys.sgi Subject: How to find the local part of a network connection ? Message-ID: <1991May6.164005.10527@bernina.ethz.ch> Date: 6 May 91 16:40:05 GMT Sender: news@bernina.ethz.ch (USENET News System) Organization: Swiss Federal Institute of Technology (ETH), Zurich, CH Lines: 23 Nntp-Posting-Host: nessie 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@nessie.cs.id.ethz.ch | | BITNET: ALMESBER@CZHETH5A HEPNET/CHADNET: [20579::]57414::ALMESBERGER | --------------------------------------------------------------------------