Hi Everybody! So, I originally posted this to comp.os.solaris, and got an OK answer...I've got a application that needs to be able to associate an open socket with the pid of a particular process. If you have a linux box handy, the output of "netstat -p" is the kind of thing I'm looking for.
It was pointed out to me that this netstat behavior is not standard, and James Carlson from Solaris Networking said the information that I want is kept in parts of the kernel w/o a public interface, and organized in a way that may change without notice. The newsgroup consensus was to use lsof. Which brings me here. lsof works, but integrating it into my program would be tricky. Also, when the parts of the kernel that James was talking about change, I'd assume that lsof would need to likewise be updated, and so would my program. What I'd like to know is if there are any plans to make the sort of network data I'm looking for available in a way that is stable across different kernel releases and easy for the application programmer to access? The guy that develops lsof would probably love that, too. Thanks all! -Jeff A. -- This messages posted from opensolaris.org
