]> git.ipfire.org Git - people/pmueller/ipfire-3.x.git/blobdiff - net-tools/patches/006-net-tools-statalias.patch
net-tools: Update to 2.0 git-rev e5f1be13.
[people/pmueller/ipfire-3.x.git] / net-tools / patches / 006-net-tools-statalias.patch
diff --git a/net-tools/patches/006-net-tools-statalias.patch b/net-tools/patches/006-net-tools-statalias.patch
new file mode 100644 (file)
index 0000000..b544ff4
--- /dev/null
@@ -0,0 +1,16 @@
+diff -up net-tools-2.0/lib/interface.c.statalias net-tools-2.0/lib/interface.c
+--- net-tools-2.0/lib/interface.c.statalias    2012-10-04 11:33:05.490889090 +0200
++++ net-tools-2.0/lib/interface.c      2012-10-04 11:33:05.513888785 +0200
+@@ -405,9 +405,11 @@ static int if_readlist_rep(char *target,
+       char *s, name[IFNAMSIZ];
+       s = get_name(name, buf);    
+       get_dev_fields(s, ife);
+-      ife->statistics_valid = 1;
+       if (target && !strcmp(target,name))
++      {
++              ife->statistics_valid = 1;
+               break;
++      }
+     }
+     if (ferror(fh)) {
+       perror(_PATH_PROCNET_DEV);