]> git.ipfire.org Git - ipfire-3.x.git/blame - net-tools/patches/006-net-tools-statalias.patch
net-tools: Update to 2.0 git-rev e5f1be13.
[ipfire-3.x.git] / net-tools / patches / 006-net-tools-statalias.patch
CommitLineData
44f64d91
SS
1diff -up net-tools-2.0/lib/interface.c.statalias net-tools-2.0/lib/interface.c
2--- net-tools-2.0/lib/interface.c.statalias 2012-10-04 11:33:05.490889090 +0200
3+++ net-tools-2.0/lib/interface.c 2012-10-04 11:33:05.513888785 +0200
4@@ -405,9 +405,11 @@ static int if_readlist_rep(char *target,
5 char *s, name[IFNAMSIZ];
6 s = get_name(name, buf);
7 get_dev_fields(s, ife);
8- ife->statistics_valid = 1;
9 if (target && !strcmp(target,name))
10+ {
11+ ife->statistics_valid = 1;
12 break;
13+ }
14 }
15 if (ferror(fh)) {
16 perror(_PATH_PROCNET_DEV);