comment out for old linux
This commit is contained in:
parent
a70ad97730
commit
d9742d7e94
1 changed files with 9 additions and 2 deletions
|
|
@ -141,6 +141,11 @@ getlink(struct nlmsghdr *h, Ipifc **ipifclist, int index)
|
||||||
if(attr[IFLA_MTU])
|
if(attr[IFLA_MTU])
|
||||||
ifc->mtu = *(int*)RTA_DATA(attr[IFLA_MTU]);
|
ifc->mtu = *(int*)RTA_DATA(attr[IFLA_MTU]);
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Does not work on old Linux systems,
|
||||||
|
* and not really necessary for my purposes.
|
||||||
|
* Uncomment if you want it bad.
|
||||||
|
*
|
||||||
if(attr[IFLA_STATS]){
|
if(attr[IFLA_STATS]){
|
||||||
struct rtnl_link_stats *s;
|
struct rtnl_link_stats *s;
|
||||||
|
|
||||||
|
|
@ -150,6 +155,8 @@ getlink(struct nlmsghdr *h, Ipifc **ipifclist, int index)
|
||||||
ifc->errin = s->rx_errors;
|
ifc->errin = s->rx_errors;
|
||||||
ifc->errout = s->tx_errors;
|
ifc->errout = s->tx_errors;
|
||||||
}
|
}
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
if((fd = devsocket()) > 0){
|
if((fd = devsocket()) > 0){
|
||||||
struct ifreq ifr;
|
struct ifreq ifr;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue