diff options
author | William Hubbs <williamh@gentoo.org> | 2012-04-01 22:59:00 -0500 |
---|---|---|
committer | William Hubbs <williamh@gentoo.org> | 2012-04-01 22:59:00 -0500 |
commit | 9127684553ea7b0f9285bc3fbe6c554f4519016c (patch) | |
tree | dac051ca1085fd02086a150230123ef18f014be2 /man | |
parent | 0571a7e05b658fc95da56d9df61e725eeda75a3c (diff) |
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
Diffstat (limited to 'man')
0 files changed, 0 insertions, 0 deletions