diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2011-03-13 17:52:03 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2011-03-13 17:52:03 +0000 |
commit | e0d763785e66cc251ae39189b230ae62a08f070e (patch) | |
tree | 712a28cfcba71ade7fe171c52c7611cd2874fc4f /modules/admin-full | |
parent | 026945ae09515980f972228442c857e1f9cb4f7f (diff) |
modules/admin-full: don't count TIME_WAIT connections in luci-bwc
Diffstat (limited to 'modules/admin-full')
-rw-r--r-- | modules/admin-full/src/luci-bwc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/admin-full/src/luci-bwc.c b/modules/admin-full/src/luci-bwc.c index 9f1b420ad..4067c577a 100644 --- a/modules/admin-full/src/luci-bwc.c +++ b/modules/admin-full/src/luci-bwc.c @@ -344,6 +344,9 @@ static int run_daemon(int nofork) while (fgets(line, sizeof(line), info)) { + if (strstr(line, "TIME_WAIT")) + continue; + if (sscanf(line, "%*s %*d %s", ifname) || sscanf(line, "%s %*d", ifname)) { if (!strcmp(ifname, "tcp")) |