aboutsummaryrefslogtreecommitdiff
path: root/src/libip
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2006-01-05 17:00:43 +0000
committerrsc <devnull@localhost>2006-01-05 17:00:43 +0000
commitd9742d7e94acc0279f687d3fd0c6360d36480f8b (patch)
tree1fe97cd43ce0180c4d43ac10078e7b93a37f1341 /src/libip
parenta70ad97730d9cb160d6ce7028b5cac03f71e37b6 (diff)
downloadplan9port-d9742d7e94acc0279f687d3fd0c6360d36480f8b.tar.gz
plan9port-d9742d7e94acc0279f687d3fd0c6360d36480f8b.tar.bz2
plan9port-d9742d7e94acc0279f687d3fd0c6360d36480f8b.zip
comment out for old linux
Diffstat (limited to 'src/libip')
-rw-r--r--src/libip/Linux.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/libip/Linux.c b/src/libip/Linux.c
index 7278a283..edc67e89 100644
--- a/src/libip/Linux.c
+++ b/src/libip/Linux.c
@@ -140,7 +140,12 @@ getlink(struct nlmsghdr *h, Ipifc **ipifclist, int index)
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 index)
ifc->errin = s->rx_errors;
ifc->errout = s->tx_errors;
}
-
+ *
+ */
+
if((fd = devsocket()) > 0){
struct ifreq ifr;