add PID/Program Name to netstat output
This commit is contained in:
parent
52ba840d5c
commit
ba53c2ef0d
|
@ -106,7 +106,7 @@ static bool do_netstat(ietf_attr_port_filter_t *attr)
|
|||
const char loopback_v6[] = "::1";
|
||||
|
||||
/* Open a pipe stream for reading the output of the netstat commmand */
|
||||
file = popen("/bin/netstat -n -l -4 -6 --inet", "r");
|
||||
file = popen("/bin/netstat -n -l -p -4 -6 --inet", "r");
|
||||
if (!file)
|
||||
{
|
||||
DBG1(DBG_IMC, "Failed to run netstat command");
|
||||
|
|
Loading…
Reference in New Issue