aboutsummaryrefslogtreecommitdiff
path: root/net
AgeCommit message (Collapse)Author
2012-12-21ifconfig.sh.Linux.in: fix ipv6 routes and default routeAlexander Tsoy
Do not add -net or -host to ipv6 routes or to the default route when using route from net-tools. X-Gentoo-Bug: 442594 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=442594
2012-12-20net/bonding: ensure mode & miimon are handled correctly.Robin H. Johnson
miimon & mode must be set before other parameters, and then not changed again. Prior commit f671e0a28 per bug #421757 introduced a small logic error. Fixed & refactored to prevent it happening as easily. X-Gentoo-Bug: 447790 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=447790 Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
2012-11-10firewalld: fix firewall-cmd dependencyWilliam Hubbs
This should be "program" instead of "program start".
2012-11-07checkbashisms: Fix redirection order.Robin H. Johnson
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
2012-11-07net/apipa: checkbashisms false positive.Robin H. Johnson
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
2012-11-07net/iwconfig: Even more bashism fun.Robin H. Johnson
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
2012-11-06checkbashisms: export syntax.Robin H. Johnson
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
2012-11-06net/vlan: checkbashisms.Robin H. Johnson
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
2012-11-06net/bonding: checkbashisms.Robin H. Johnson
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
2012-11-05oldnet: add firewalld supportDoug Goldstein
2012-10-17Oldnet: bonding: set miimon correctlyLorand Kelemen
Miimon needs to be activated before downdelay is set. X-Gentoo-Bug: 421757 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=421757
2012-10-11net/bonding: Sanity-check sysfs usageRobin H. Johnson
If sysfs is not available, you might still be able to create bond interfaces, but only in very specific configurations, and you must have the ifenslave binary instead to call ioctls. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
2012-10-11net/bonding: subsume functionality for NFS bootingRobin H. Johnson
If the kernel is NFS-booting, it is critical that we don't down the slave interfaces when we activate the bond. To do so will break the root filesystem when networking is temporarily lost. Reported-by: Walter <walter@pratyeka.org> X-Gentoo-Bug: 428604 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=428604 Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
2012-10-10net/{bridge,iproute2}: Stricter iproute2 ip link syntax & promisc handlingRobin H. Johnson
The 'dev' argument is only optional for ethX devices, for others it is mandatory, so we should always include it. Also tweak when promisc mode is applied to bridges. Patches submitted by Denis Kaganovich <mahatma@bspu.unibel.by>. X-Gentoo-Bug: #431204 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=431204 Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
2012-09-07oldnet/iproute2.sh: fix carrier detectionWilliam Hubbs
We were not testing for carrier correctly when testing for ipv6 tentative addresses. Reported-by: <ast@domdv.de> X-Gentoo-Bug: 433012 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=433012
2012-07-20Bug #427152: Port of VLAN code to sysfs/iproue2 from vconfig lost the ↵Robin H. Johnson
ability to create different vlans with the same ID but different interfaces on a single system. Implement it now. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
2012-07-04net: fix typoBjörn Baumbach
2012-06-07net/udhcpc: use -x hostname:NAME option instead of -h nameWilliam Hubbs
reported-by: bug@mejor.pl X-Gentoo-Bug: 417617 X-Gentoo-Bug-URL: https://bugs.gentoo.org/417617
2012-05-03net: Be sure to install the ip6rd module.Robin H. Johnson
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
2012-04-24WhitespaceChristian Ruppert
2012-04-03network scripts need sysfs on linux systemsWilliam Hubbs
Adjust the previous commit so that on linux systems the network scripts need sysfs.
2012-04-03net/ifconfig, net/iproute: need sysfsRobin H. Johnson
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>
2012-04-01Change the method for calculating the interface metric for linux systemsWilliam Hubbs
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-03-11net/ifconfig: The location of the ifconfig binary has changedRobin H. Johnson
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
2012-03-02Bug #405491: _exists can give a false negative since /proc/net/dev can be ↵Robin H. Johnson
slow to update sometimes when interfaces are added rapidly. Use sysfs instead. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
2012-02-09Whitespace.Robin H. Johnson
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
2012-02-09oldnet: ip6rd supportSalah Coronya
X-Gentoo-Bug: 392223 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=392223 Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
2012-01-26WhitespaceChristian Ruppert
2012-01-25net/bonding: Fix which interface IPs get added to.Robin H. Johnson
The previous bonding change of ensuring interfaces were down to add slave interfaces, but it clobbered the IFACE variable, because it was being passed to a bash function rather than a command. X-Gentoo-Bug: 400613 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=400613 Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
2012-01-16net/ethtool: Fix program call.Robin H. Johnson
I missed removing a call to the old ethtool function wrapper that was made unneeded by commit d02d3af02. X-Gentoo-Bug: 399037 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=399037 Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
2012-01-12net/iproute2: Handle shortened argumentsRobin H. Johnson
Allow users to shorten iproute arguments to the shortest unique argument that will match a flag of iproute2. X-Gentoo-Bug: 398721 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=398721 Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
2012-01-08net: net.lo, lots of scriptsRobin H. Johnson
The program function in depend blocks is now able to search paths by itself. If passed multiple arguments or multiple calls, at least one of the arguments passed must be a program or a shell builtin (eg ip built into busybox). If a qualified path is specified, only that path will be checked, otherwise it will be checked as a builtin, then $PATH will be checked for the named binary (via type). Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
2012-01-07net: make lookup of ethtool dynamicWilliam Hubbs
The ethtool module checked in two places for the ethtool binary; now we look for it in the path.
2012-01-07net: make lookup of iproute2 dynamicWilliam Hubbs
The iproute2, macvlan and vlan modules had several possible hard coded paths for the iproute2 binary. Now we look for it in the path.
2012-01-06Revert "net/ifconfig net/iproute2: support lookup ifconfig/ip dynamically"William Hubbs
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
2012-01-04net/ifconfig net/iproute2: support lookup ifconfig/ip dynamicallyMike Frysinger
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-12-29net:macvlan: bring up the interfaceMarien Zwart
X-Gentoo-Bug: 396429 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=396429
2011-12-29net: remove _check_macvlan functionWilliam Hubbs
This test is incorrect, and we do not need the modprobe. If macvlan is a module, it is automatically modprobed when the first macvlan link is added. Also, the /sys directory referred to in the test does not exist if macvlan is built into the kernel. Reported-by: Marien Zwart <marienz@gentoo.org> X-Gentoo-Bug: 396427 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=396427
2011-12-28net/iproute2: POSIX sh compatability: ${x/a/b} invalidRobin H. Johnson
The ${x/a/b} shell construct is NOT defined in the POSIX specification, it's a bash addition. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
2011-12-26net/vlan: Fix prestop when device was hard-removed alreadyRobin H. Johnson
During stop of an interface, if it has been removed already (eg hotunplug), not existing is fine. X-Gentoo-Bug: 395859 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=395859 Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
2011-12-26Fix whitespace.Robin H. Johnson
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
2011-12-26net/vlan, net/macvlan: iproute2 is required for new VLAN configurationRobin H. Johnson
Since commit 683a21b0a in Feburary 2011, iproute2 has been required for new VLAN configuration. MACVLAN is also impossible to configure without iproute2. However we did not check if iproute2 was actually in the modules for a given interface, so it could end up hanging or giving weird errors. Check for iproute2 before usage now. X-Gentoo-Bug: 389437 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=389437 Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
2011-12-26net/ip6to4: Split to use pre_start and start so that other tunnel names work.Robin H. Johnson
We need to create interfaces of custom names before we can sucessfully start them. To do this, we have to add tunnels during prestart instead of start. Split up the ip6to4 script to do this, saving the computed variables for use in start with the new service data commands. X-Gentoo-Bug: 372575 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=372575 Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
2011-12-21net/iproute2: Confirmed that broadcast and peer can be used together.Robin H. Johnson
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
2011-12-21net/iproute2: IPv6 cannot be used with broadcastRobin H. Johnson
Broadcast and IPv6 should not be used together. Do not try to set the keyword for auto-generation of the broadcast address. If the user passes a broadcast address for IPv6, throw an error. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
2011-12-21net/iproute2: iproute2 flag handlingRobin H. Johnson
Several of the optional flags were not being handled correctly, they were being passed as values only, without the keyword before them. Affected keywords: anycast, label, scope, valid_lft, preferred_lft Also change the handling of keywords to a common setup now, making broadcast and peer strings the same as the above keywords. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
2011-12-13net: Support more variants of address family specification.Robin H. Johnson
This includes address family specifications methods to help debug bug 358235 further. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
2011-12-13net/iproute2: Support routing policy for IPv6 per bug #385833Robin H. Johnson
For creation of routing policy entries for IPv6, the family must be explicitly specified to 'ip'. X-Gentoo-Bug: 385833 X-Gentoo-Bug-URL: https://bugs.gentoo.org/385833 Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
2011-12-12net/vlan: Fix mtu settingRobin H. Johnson
Fix minor shell typo that broke setting mtu on vlans. X-Gentoo-Bug: 392971 X-Gentoo-Bug-URL: https://bugs.gentoo.org/392971 Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
2011-12-13net/tuntap: fix return code when tools can't be foundWilliam Hubbs
This module should return failure if iproute2, openvpn or tunctl cannot be found. Before it was returning success; this fixes the issue.