From 95b634d28cdb19df4c105158e6b779ff8e8a4eb9 Mon Sep 17 00:00:00 2001 From: david Date: Thu, 27 Sep 2012 02:58:27 +0000 Subject: [PATCH] We are reading 11, not 10, fields from /proc/net/route. --- libdnet-stripped/src/route-linux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libdnet-stripped/src/route-linux.c b/libdnet-stripped/src/route-linux.c index c4976a420..9fa77fd61 100644 --- a/libdnet-stripped/src/route-linux.c +++ b/libdnet-stripped/src/route-linux.c @@ -225,7 +225,7 @@ route_loop(route_t *r, route_handler callback, void *arg) &entry.route_gw.addr_ip, &iflags, &refcnt, &use, &metric, &mask, &mss, &win, &irtt); - if (i < 10 || !(iflags & RTF_UP)) + if (i < 11 || !(iflags & RTF_UP)) continue; entry.route_dst.addr_type = entry.route_gw.addr_type =