]>
Commit | Line | Data |
---|---|---|
44f64d91 SS |
1 | diff -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); |