modules/admin-full: filter localhost<->localhost connections live connection graph
[project/luci.git] / modules / admin-full / src / luci-bwc.c
index ce8e0e4..1a4f510 100644 (file)
@@ -254,7 +254,7 @@ static void umap_file(struct file_map *m)
 
 static void * iwinfo_open(void)
 {
-       return dlopen("/usr/lib/lua/iwinfo.so", RTLD_LAZY);
+       return dlopen("/usr/lib/libiwinfo.so", RTLD_LAZY);
 }
 
 static int iwinfo_update(
@@ -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"))