summaryrefslogtreecommitdiff
path: root/net/ifconfig.sh.Linux.in
Commit message (Collapse)AuthorAge
* WhitespaceChristian Ruppert2012-04-24
|
* network scripts need sysfs on linux systemsWilliam Hubbs2012-04-03
| | | | | Adjust the previous commit so that on linux systems the network scripts need sysfs.
* net/ifconfig, net/iproute: need sysfsRobin H. Johnson2012-04-03
| | | | | | | | | | sysfs needs to be available before we can check interfaces. On udev systems this was not a problem, but with mdev/static-dev, there is no other need for sysfs until later in the init. X-Gentoo-Bug: 410701 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=410701 Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
* Change the method for calculating the interface metric for linux systemsWilliam Hubbs2012-04-01
| | | | | | | | | | | | | | 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
* net/ifconfig: The location of the ifconfig binary has changedRobin H. Johnson2012-03-11
| | | | | | | | | | | The location of the ifconfig binary has changed in net-tools-1.60_p20120127084908, and if we do not check both locations for it, the user will get errors like: _is_wireless: command not found _exists: command not found X-Gentoo-Bug: 407757 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=407757
* Bug #405491: _exists can give a false negative since /proc/net/dev can be ↵Robin H. Johnson2012-03-02
| | | | | | slow to update sometimes when interfaces are added rapidly. Use sysfs instead. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
* Revert "net/ifconfig net/iproute2: support lookup ifconfig/ip dynamically"William Hubbs2012-01-06
| | | | | | | | | | | This reverts commit f583030e3cbfb1d2f30af3ebd00427e12fe66b70. The previous commit did not account for the case of not having iproute2 installed. Reported-by: Duncan <1i5t5.duncan@cox.net> X-Gentoo-Bug: 397875 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=397875
* net/ifconfig net/iproute2: support lookup ifconfig/ip dynamicallyMike Frysinger2012-01-04
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* net: Support more variants of address family specification.Robin H. Johnson2011-12-13
| | | | | | | This includes address family specifications methods to help debug bug 358235 further. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
* net/ifconfig, net/iproute2: admin/oper state check functionsRobin H. Johnson2011-12-12
| | | | | | | | | | | Provide consistent methods using iproute2/ifconfig to check operational and administrative up/down state of interfaces. This is not the same as ethtool's "Link detected" field, which is the state of the layer 2 medium. TODO: How to check operational state in BSD? Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
* make shell math operations style more succulentMike Frysinger2011-11-19
| | | | | | | | | | | Convert the style: var=$((${var} + 1)) to: : $(( var += 1 )) The latter is easier to read imo. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* drop useless "All rights reserved" noticeMike Frysinger2011-06-29
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* more whitespace cleanupMike Frysinger2011-01-17
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Fix pointopoint typo in old ifconfig setup.Robin H. Johnson2010-12-15
|
* Support phy80211, fixes #209.Alon Bar-Lev2009-12-05
|
* Apply MTU and txqueuelen after creating the tunnel.Roy Marples2009-07-08
|
* Add (c) to CopyrightRoy Marples2009-05-01
|
* Allow family on routes, #152Roy Marples2009-04-19
|
* Don't quote $tunnel, Gentoo #218123.Roy Marples2008-10-26
|
* Some ifconfig's output weird inet6 loopback addressesRoy Marples2008-05-28
|
* add support for parsing newer ifconfig outputMike Frysinger2008-04-19
| | | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Merge net.OS into netRoy Marples2008-03-26