add PID/Program Name to netstat output

This commit is contained in:
Andreas Steffen
2011-07-07 09:22:27 +02:00
parent 52ba840d5c
commit ba53c2ef0d
@@ -106,7 +106,7 @@ static bool do_netstat(ietf_attr_port_filter_t *attr)
const char loopback_v6[] = "::1"; const char loopback_v6[] = "::1";
/* Open a pipe stream for reading the output of the netstat commmand */ /* 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) if (!file)
{ {
DBG1(DBG_IMC, "Failed to run netstat command"); DBG1(DBG_IMC, "Failed to run netstat command");