summaryrefslogtreecommitdiff
path: root/net
Commit message (Collapse)AuthorAge
* Fix typoWilliam Hubbs2011-11-23
|
* pass the per-interface metric to resolvconfWilliam Hubbs2011-11-22
| | | | | | 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
* 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>
* Use pattern rules instead of suffix rulesWilliam Hubbs2011-10-29
| | | | | | 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.
* Add macvlan supportStef Simoens2011-10-26
| | | | | X-Gentoo-Bug: 384029 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=384029
* further clean up OS differences in makefilesMike Frysinger2011-10-20
| | | | | | No need for if() logic. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Make variable references in Makefiles consistentWilliam Hubbs2011-10-19
| | | | | | 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.
* consolodate MakefilesWilliam Hubbs2011-10-18
| | | | | | | | | | 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
* net/vlan: respect txqueuelen/mac/broadcast/mtu options during creation.Robin H. Johnson2011-10-07
| | | | Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
* Shutdown VLAN's before the actual/parent interfaceChristian Ruppert2011-09-21
| | | | | | | | | | | 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
* Refactoring of commit bf49e59e3eb4fe12167812bc1b4531742eddc383Christian Ruppert2011-09-21
| | | | Make sure the RPDB rules will be removed.
* Don't do anything if the interface doesn't existYun Zheng Hu2011-09-19
| | | | | | | | iproute2_post_stop() does now check if the network interface still exist. Reported-by: Yun Zheng Hu <hu@fox-it.com> X-Gentoo-Bug: 379575 X-Gentoo-Bug-URL: https://bugs.gentoo.org/379575
* Fix the Internal Field Seperator when using ethtoolGilles Oivier2011-09-18
| | | | | | | | | | | | ethtool.sh didn't reset the Internal Field Seperator (IFS) properly. It now does, by storing the old IFS to OIFS, which will be used later in the for loop. It also fixes the "ethtool_ring_<if>" option. Reported-by: Alois Schmid <alois.schmid@gmx.de> X-Gentoo-Bug: 368525 X-Gentoo-Bug-URL: https://bugs.gentoo.org/368525
* Improve missing openvpn/usermode-utilities warning messageChristian Ruppert2011-09-17
| | | | as OpenRC can be used on other distributions as well.
* Parse broadcast arp responses via arping (iputils) properlyStefan Knoblich2011-09-17
| | | | | | | | | | | | ARP replies may/do contain two MAC addresses when using iputils's arping so we have to use the first one because it's always the "From" address - which is what we want. Thanks to Stefan Knoblich <s.knoblich@axsentis.de> for the fixed pattern. Reported-by: cl@exomail.to X-Gentoo-Bug: 379181 X-Gentoo-Bug-URL: https://bugs.gentoo.org/379181
* Print a warning if openvpn/tunctl are missingChristian Ruppert2011-09-16
|
* Rewrite iproute2 addr argument parsing.Robin H. Johnson2011-07-18
| | | | | | | | | | | | | | This was originally to fix the fact that our code did not handle certain orders of arguments in conversion, but it was easier to rewrite the entire argument handling to support more options at the same time. Now supports all options documented in the ip manpage, including the IPv6-specific options that must be passed after the interface argument. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> Reported-by: Tony Vroon <chainsaw@gentoo.org> X-Gentoo-Bug: 366905 X-Gentoo-Bug-URL: https://bugs.gentoo.org/366905
* eat trailing whitespaceMike Frysinger2011-07-04
| | | | 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>
* net: ccwgroup: smooth up/down processMike Frysinger2011-06-28
| | | | | | | | | | | | | | | We need to bring the link up ourselves after we've properly configured the device. The common code tries to bring the link up itself, but it does so before things are configured, and so it ends up failing. When shutting down, we need to wait for the kernel to finish destroying the interface. Otherwise, when doing a restart, openrc is quick enough to tell the kernel to destroy things, but then start trying to bring it back up before the kernel has finished. X-Gentoo-Bug: 367467 X-Gentoo-Bug-URL: http://bugs.gentoo.org/367467 Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* net:bonding small style change for readabilityWilliam Hubbs2011-05-16
|
* Do not add slaves to bond interface if they are already addedKfir Lavi2011-05-16
| | | | | | X-Gentoo-Bug: 366653 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=366653 Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
* net: ccwgroup: forward port changes from baselayout-1Mike Frysinger2011-05-16
| | | | | | | | Quite a bit of work happened in baselayout-1 on the ccwgroup module, but seems it didn't make it into openrc. So forward port all the existing code so we can work with more than just qeth and layer2 options. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* change udhcpc support to busybox udhcpcWilliam Hubbs2011-04-26
| | | | | | | | | | | This updates the udhcpc support to use busybox's udhcpc instead of the stand alone version. I would like to thank jackieku <kjackie@gmail.com> for assisting with this update. X-Gentoo-Bug: 205286 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=205286
* [oldnet] Bug #363959: Improve plug_timeout ifplugd/netplugd code.Robin H. Johnson2011-04-19
| | | | | | | | - Add support for a global plug_timeout setting to match the documentation. - Update the documentation to also show per-interface configuration. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
* fix typo in ethtool.shWilliam Hubbs2011-04-07
| | | | | | | This was causing the ethtool interface to not work. X-Gentoo-Bug: 360481 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=360481
* remove bashism from ethtool moduleMarc Joliet2011-03-27
| | | | | X-Gentoo-Bug: 360367 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=360367
* net: bonding: avoid using bash string replaceMike Frysinger2011-03-18
| | | | | | | X-Gentoo-Bug: 359311 X-Gentoo-Bug-URL: http://bugs.gentoo.org/359311 Reported-by: Raffaello D. Di Napoli <fastijum@gmail.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* net/ethtool: official interface for changing ethtool params (bug #195479)Robin H. Johnson2011-02-22
| | | | | | | | | | Implement a consistent interface for changing ethtool parameters, as suggested in bug 195479. All variable names are based on the long option to ethtool to set each group of parameters. Multiple entries seperated by newlines are permitted for variable values. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Gentoo-Bug: 195479
* net/iproute2: Pass required explicit -6 for IPv6 tunnels (#347657)Robin H. Johnson2011-02-21
| | | | | | | | Tunnel modes ipip6 and ip6ip6 require an explicit family selection for the ip tunnel call. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Gentoo-Bug: 347657
* net/vlan: update to use modern iproute2 interfaceRobin H. Johnson2011-02-21
| | | | | | | | | | | | This replaces the vlan setup code that previously used the old vconfig binary with a new implementation using the iproute2 interface. vconfig does not handle many of the newer setups. No automatic migration path is provided, as altering the configuration is non-trivial. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> Written-by: Guillaume Castagnino <casta@xwing.info> X-Gentoo-Bug: 346365
* fix typo in iproute2 moduleChristian Wetzig2011-02-12
| | | | | X-Gentoo-Bug: 354511 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=354511
* bridge.sh: use correct POSIX test, = not ==Christian2011-02-05
| | | | | X-Gentoo-Bug: 353124 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=353124
* more whitespace cleanupMike Frysinger2011-01-17
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Move the ip rule extra output to verbose mode only, and support verbose ↵Robin H. Johnson2010-12-15
| | | | output on addresses and routes.
* Fix pointopoint->peer for iproute.Robin H. Johnson2010-12-15
|
* Fix pointopoint typo in old ifconfig setup.Robin H. Johnson2010-12-15
|
* Final documentation cleanup for updated bridge code.Robin H. Johnson2010-12-12
| | | | | | | | Specifically document how to handle the case of explicitly starting a bridge and then dynamically adding interfaces to it. brctl_br0='' bridge_add_eth0='br0'
* Merge support for Routing Policy Database (RPDB)Robin H. Johnson2010-12-11
| | | | | | | | | | | | | | | | | | | | This can be used for multi-homed connections and other advanced routing in Linux. See the documentation links for more information about doing this in linux. The code was a originally pure addon into the conf.d/net files, written in mid-2004 for doing multi-homing between two internet connections. I have finally cleaned this up and integrated it. Thanks to Jonathan Kwan for giving me the original impetus to develop this for Gentoo (it was his dual internet connections...). In the intervening years, it was a example of postup/postdown in the net.example file, however that suffered from a few corner case issues. If you were using the code from net.example, please see the updated section 'Advanced Routing' on syntax, and drop your old function blocks. Additionally, note that the rules added are now directly saved for removal when the interface is taken down.
* Revamp of bridging code.Robin H. Johnson2010-12-11
| | | | | | | | | | | - Use sysfs to read bridge information from the system instead of parsing the brctl outputs. - Allow setting of all bridge configuration parameters using new sysfs methods, modelled after bonding configuration. Also works for per-port bridge interface parameters. - Document pre-starting an empty bridge for dynamic add. - Check for interface existence before adding to bridge. - Should fix bug #293046, #309185.
* Bug #345281: If wpa_supplicant is built w/ USE=dbus, we need to start after ↵Robin H. Johnson2010-12-06
| | | | DBus is up.
* Revert "allow ifplugd to work on wireless interfaces"William Hubbs2010-11-18
| | | | | | | | This reverts commit 4ea75dd1d6c1e475f103f027fd05861d237add4d. This caused a regression, see bug #345795. Ifplugd is only designed to support wireless interfaces that use the older wireless extentions.
* ensure bonding interface is down before we attempt to configure, alsoJory A. Pratt2010-10-31
| | | | | mode has to be configure before any other arguements are passed. Thanks Ed Wildgoose <gentoo@wildgooses.com> for patch.
* allow ifplugd to work on wireless interfacesWilliam Hubbs2010-09-14
| | | | this fixes bug #335494.
* Revert "fix bug 266395"William Hubbs2010-09-02
| | | | | | This reverts commit 1a188f8f725186b2c2d6d7c67e79c2ff5ea9d05e. This revert fixes bug #334663.
* fix detection of renamed vlan interfacesWilliam Hubbs2010-08-19
| | | | This fixes bug 327059, thanks to Jonathan for reporting this and for the patch.
* fix bug 266395William Hubbs2010-08-18
| | | | | Do not stop wpa_supplicant or wpa_cli if they are in the background. Thanks to Slava Gorbunov for the patch.
* Fixes bug #332383. Thanks Lutz Heermann.Anthony G. Basile2010-08-13
|
* Fix bug #332181. Thanks Lutz Heermann.Anthony G. Basile2010-08-13
|
* allow ip to be in /sbin or /binWilliam Hubbs2010-08-09
| | | | | This makes it possible for the "ip" program in iproute2 to be installed in /sbin or /bin.