commit d9742d7e94acc0279f687d3fd0c6360d36480f8b from: rsc date: Thu Jan 05 17:00:43 2006 UTC comment out for old linux commit - a70ad97730d9cb160d6ce7028b5cac03f71e37b6 commit + d9742d7e94acc0279f687d3fd0c6360d36480f8b blob - 7278a2836db09aba518e81a3ad36e489a27c0777 blob + edc67e897b53dddf81565f3fe51a082a4dc67ec3 --- src/libip/Linux.c +++ src/libip/Linux.c @@ -140,7 +140,12 @@ getlink(struct nlmsghdr *h, Ipifc **ipifclist, int ind if(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]){ struct rtnl_link_stats *s; @@ -150,7 +155,9 @@ getlink(struct nlmsghdr *h, Ipifc **ipifclist, int ind ifc->errin = s->rx_errors; ifc->errout = s->tx_errors; } - + * + */ + if((fd = devsocket()) > 0){ struct ifreq ifr;