summaryrefslogtreecommitdiffhomepage
path: root/modules/admin-full
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2011-03-13 17:52:03 +0000
committerJo-Philipp Wich <jow@openwrt.org>2011-03-13 17:52:03 +0000
commite0d763785e66cc251ae39189b230ae62a08f070e (patch)
tree712a28cfcba71ade7fe171c52c7611cd2874fc4f /modules/admin-full
parent026945ae09515980f972228442c857e1f9cb4f7f (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.c3
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"))