diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2012-11-27 14:16:42 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2012-11-27 14:16:42 +0000 |
commit | e689fa8900784d57eb17f4af59ada39ab0823d4c (patch) | |
tree | cc655ae8b62e4b047a635c58016aec10a3b164e6 /modules/admin-full/src/luci-bwc.c | |
parent | ce8a22d1b44029bff04450bebc86bab8591cb3be (diff) |
modules/admin-full: filter localhost<->localhost connections live connection graph
Diffstat (limited to 'modules/admin-full/src/luci-bwc.c')
-rw-r--r-- | modules/admin-full/src/luci-bwc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/admin-full/src/luci-bwc.c b/modules/admin-full/src/luci-bwc.c index 52e25e6f78..1a4f510d78 100644 --- a/modules/admin-full/src/luci-bwc.c +++ b/modules/admin-full/src/luci-bwc.c @@ -536,6 +536,10 @@ static int run_daemon(void) if (strstr(line, "TIME_WAIT")) continue; + if (strstr(line, "src=127.0.0.1 ") && + strstr(line, "dst=127.0.0.1 ")) + continue; + if (sscanf(line, "%*s %*d %s", ifname) || sscanf(line, "%s %*d", ifname)) { if (!strcmp(ifname, "tcp")) |