aboutsummaryrefslogtreecommitdiff
path: root/net
AgeCommit message (Collapse)Author
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.
2011-12-12Tuntap: add iproute2 supportSalah Coronya
This patch was modified by William Hubbs <williamh@gentoo.org> to document the new usage in net.example. X-Gentoo-Bug: 394281 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=394281
2011-12-12net/ifconfig, net/iproute2: admin/oper state check functionsRobin H. Johnson
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>
2011-12-12net/bonding: ensure slave interfaces are down before adding.Robin H. Johnson
The old ifenslave binary forcibly set new slave interface to down before adding into the kernel, as a way of show it's version to the kernel. We need to duplicate this so that the kernel doesn't think it's an old ifenslave version using the bonding setup interface. X-Gentoo-Bug: 391881 X-Gentoo-Bug-URL: https://bugs.gentoo.org/391881 Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> Thanks-to: Yun Zheng Hu <hu@fox-it.com>
2011-12-09ip6to4: set correct subnet maskWilliam Hubbs
The correct setting for this is /48. Reported-by: MaratIK <marat.buharov@gmail.com> X-Gentoo-Bug: 392723 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=392723
2011-12-09iproute2: set a default broadcast address if none is specifiedWilliam Hubbs
Reported-by: Spooky Ghost <spookyghost@blueyounder.co.uk> X-Gentoo-Bug: 392593 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=392593
2011-11-23Fix typoWilliam Hubbs
2011-11-22pass the per-interface metric to resolvconfWilliam Hubbs
Reported-by: Alon Bar-Lev <alon.barlev@gmail.com> x-Gentoo-Bug: 364907 x-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?364907
2011-11-19make shell math operations style more succulentMike Frysinger
Convert the style: var=$((${var} + 1)) to: : $(( var += 1 )) The latter is easier to read imo. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-10-29Use pattern rules instead of suffix rulesWilliam Hubbs
Rework the makefiles to use pattern rules instead of suffix rules. This is the preferred way to write implicit rules according to the gnu make manual.
2011-10-26Add macvlan supportStef Simoens
X-Gentoo-Bug: 384029 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=384029
2011-10-20further clean up OS differences in makefilesMike Frysinger
No need for if() logic. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-10-19Make variable references in Makefiles consistentWilliam Hubbs
Some variable references were written as $(foo), but the majority were written as ${foo}. This commit changes all of the variable references to using braces.
2011-10-18consolodate MakefilesWilliam Hubbs
The tree contained many operating system specific Makefiles which were being included in other Makefiles. This commit removes those and adds the code to the makefiles which included them using make's conditional processing. X-Gentoo-Bug: 387441 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=387441
2011-10-07net/vlan: respect txqueuelen/mac/broadcast/mtu options during creation.Robin H. Johnson
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
2011-09-21Shutdown VLAN's before the actual/parent interfaceChristian Ruppert
Make sure the VLAN interfaces as well as its rules will be removed prior to the actual/parent interface. The VLAN configs are gone in vlan_post_stop() already so we have to use vlan_pre_stop() instead. Reported-by: Bernd Bednarz <bernd.bednarz@avira.com> X-Gentoo-Bug: 380603 X-Gentoo-Bug-URL: https://bugs.gentoo.org/380603
2011-09-21Refactoring of commit bf49e59e3eb4fe12167812bc1b4531742eddc383Christian Ruppert
Make sure the RPDB rules will be removed.