Subject: Re: netstat and PIDs
To: None <current-users@NetBSD.ORG>
From: der Mouse <mouse@Holo.Rodents.Montreal.QC.CA>
List: current-users
Date: 09/13/1996 06:17:17
>> Well, there does have to be _some_ link between the [socket and the
>> process], because [...].  But that's probably not useful, because
>> [...].  Probably easier to scan the open file tables.

> If you want to associate pid's with network connections, why not use
> lsof or similar ?

> looking for the matching vnode pointer in the fd table is not what
> I'd call an efficient approach to solving the problem.

Um, isn't scanning the open file tables exactly how lsof/fstat/etc
work?  Indeed, I'd say it has to be; AFAIK there is no other link
between the processes and the socket structures.

					der Mouse

			       mouse@rodents.montreal.qc.ca
		     01 EE 31 F6 BB 0C 34 36  00 F3 7C 5A C1 A0 67 1D