I would like to ask you for hints towards standard Perl functions, modules, or CPAN modules that can help in trying to relate INET sockets to PIDs in the process table.
I think there are some tools in the public domain such as lsof that can be used as command line programmes. However, I would prefer to use a Perl contained solution.
The OS is HP-UX 10.20. I have no notion of system programming on HP-UX using the HP-UX libc, or how to access kernel space to retrieve the wanted connection.
Would one need a packet filtering library like libpcap and a NIC in promiscous mode to achieve this?
I wonder how netstat -an -f inet is filering all active INET sockets. But then I'd still need the link to which proc is having handles on which socket.
I would know enough about basic Perl IPC in order to parse output from forked external commands, but as mentioned I'd prefer a Perl solution, if this is possible at all.
Rgds.In reply to Relating AF_INET sockets to processes using Perl by SIGSEGV
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |