commit - a70ad97730d9cb160d6ce7028b5cac03f71e37b6
commit + d9742d7e94acc0279f687d3fd0c6360d36480f8b
blob - 7278a2836db09aba518e81a3ad36e489a27c0777
blob + edc67e897b53dddf81565f3fe51a082a4dc67ec3
--- src/libip/Linux.c
+++ src/libip/Linux.c
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;
ifc->errin = s->rx_errors;
ifc->errout = s->tx_errors;
}
-
+ *
+ */
+
if((fd = devsocket()) > 0){
struct ifreq ifr;