William Hubbs 9127684553 Change the method for calculating the interface metric for linux systems
On linux systems running  >=linux-3.2, the /proc/net/dev file cannot be
relied on to show the order network interfaces were added to the system.
Also, there is currently a bug in the implementation of the seek call
for this file which can cause a system to go into an infinite loop.
This commit changes the _ifindex function to retreive the value of
/sys/class/net/${IFACE}/ifindex and use that value instead of attempting
to calculate one from the interface's position in /proc/net/dev.

reported-by: John Keeping <john.keeping@lineone.net>
X-Gentoo-Bug: 410127
X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=410127
2012-04-01 22:59:00 -05:00
..
2009-05-28 20:16:35 +01:00
2012-01-26 20:47:46 +01:00
2012-01-08 16:24:10 -08:00
2012-01-08 16:24:10 -08:00
2012-01-16 09:33:09 -08:00
2012-02-09 01:43:27 -08:00
2012-01-08 16:24:10 -08:00
2012-01-08 16:24:10 -08:00
2012-01-08 16:24:10 -08:00
2011-11-23 08:17:33 -06:00
2012-01-08 16:24:10 -08:00
2012-01-08 16:24:10 -08:00