summaryrefslogtreecommitdiff
path: root/networking/ifupdown.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* add missing ;1_00_rc2Eric Andersen2004-07-261-1/+1
|
* bother. unrevert my fix.Eric Andersen2004-07-261-1/+2
|
* Make certain that udhcp shuts down the interfaceEric Andersen2004-07-261-2/+1
|
* oopsEric Andersen2004-07-261-1/+1
|
* Make certain that udhcp shuts down the interfaceEric Andersen2004-07-261-1/+2
|
* Patch from Manousaridis Angelos to bring dhclient down more elegentlyGlenn L McGrath2004-07-231-1/+2
|
* Patch from Mike Snitzer to fix return codes.Glenn L McGrath2004-07-211-13/+29
| | | | | | | | | | | | | | | | | "I have a need to _really_ know if the interface was properly configured via ifup so I made busybox's ifupdown pass the return codes through rather than dropping them on the floor." "All the functions in ifupdown.c return 1 on success and 0 on failure (which happens to the opposite of standard practices but whatever). So it is important for all these functions to not blindly return 1." "The problem with blindly returning ret, even if it is != 1, is the callers expect a 0 or 1 and accumulate the return codes. So a function that makes 3 calls to execute will have a value of 3 accumulated. That value of 1 (success) was almost always returned even if 1 of the commands in the command sequence failed. The attached patch fixes the lack of checking to verify thar result == expected_reult."
* Patch from Mike Snitzer, bring down dhclient using its correct pid, fixGlenn L McGrath2004-07-211-2/+2
| | | | a grammatical error.
* Prevent "`bootp_down' was declared implicitly `extern' and later `static'" ↵Eric Andersen2004-07-201-9/+9
| | | | warning
* Paul Fox writes:Eric Andersen2004-06-291-2/+2
| | | | | | | | | hi -- working with ifupdown, i've found a couple of buglets -- the wrong string is passed to an error message. paul
* Update my email address, document some of my tasks in the AUTHORS fileGlenn L McGrath2004-04-251-1/+1
|
* Eric Spakman noticed that ifdown' will attempt to run 'ifconfig'Eric Andersen2004-04-121-1/+1
| | | | | even if built with CONFIG_FEATURE_IFUPDOWN_IP when shutting down a dhcp connection.
* Remove trailing whitespace. Update copyright to include 2004.Eric Andersen2004-03-151-14/+14
|
* Manousaridis Angelos writes:Eric Andersen2003-12-191-10/+8
| | | | | | | | | | | | | | | | Hello, I have been using busybox for some time now, for an ARM based platform. I was very pleased when I tried the 1.00preX series, with all the new utilities and daemons. I found out that the ifupdown in busybox does not behave exaclty like the debian version. Then the pre-up script fails, the interface is getting up. Also when the post-up script fails the return value is ignored. Actually everything is always run and the return value is always true. I looked at the original implementation from debian and fixed the busybox version to do the same. A patch is attached if anyone is interested.
* As vodz just pointed out, I screwup up the call to bb_xasprintf!1_00_pre3Eric Andersen2003-09-121-2/+2
|
* Invoke run-parts on /etc/network/if-*.d per the behavior ofEric Andersen2003-09-121-7/+4
| | | | the upstream ifupdown code...
* move all "-/bin/sh" "/bin/sh" and "sh" to libbb/messages.c file as oneGlenn L McGrath2003-09-021-1/+1
| | | | | constant. Vodz last_patch_107
* label's dont work in v4 tunnels, patch by Eric SpakmanGlenn L McGrath2003-08-291-1/+1
|
* Eric Spakman writes:Eric Andersen2003-08-061-7/+11
| | | | | | | | | | | | | | | | | | | The attached patch adds "mtu" and "hwaddress" to the inet6 method and "mtu", "hwaddr" and "pointopoint" to the inet4 method (just like in the ifupdown part). Note: "hwaddress" can't be used with the busybox ip applet (this function isn't implemented in bb ip yet), but it can be of use with an external "full blown" ip package. The patch also removes "label" from the loopback configuration, labels (subinterfaces) aren't used with loopback interfaces. It further solves a problem in the bootp method, "ifconfig down %interface%" should be "ifconfig %interface% down" and it's now also possible to use ip with bootp. The patch is fully tested with both busybox ip and "stand-alone" ip and I didn't saw any problems.
* Eric Spakman writes:Eric Andersen2003-07-301-1/+1
| | | | | | | | | | | | | | | The recent changes in ifupdown where all calls to 'ip link set' and 'ip addr set' are swapped give some problems with v4tunnels. For plain ipv4 and ipv6 interfaces it works correct, other methods not tried. The patch below change the behaviour back for v4tunnels only. Without the patch the following errors are shown: RTNETLINK answers: Network is down RTNETLINK answers: No route to host and the tunnel is not fully brought up With this patch all works as expected.
* Match up interfacesEric Andersen2003-07-291-1/+1
|
* Bruno Randolf writes:Eric Andersen2003-07-291-5/+6
| | | | | | | | | | | | | | | | | | | | | | | this patch fixes run_parts when it's called by ifupdown. 1) argv has to be a NULL terminated char* array, not just a string. 2) run_parts now explicitly sets the environment. this environment is populated from the /etc/network/interfaces config file and is needed by the scripts in /etc/network/if-pre-up.d/. when run-parts is called from the command line the environment is taken from the current process. Vladimir Oleynik then wrote: You can simplify this if use: + bb_xasprintf(&buf[0], "/etc/network/if-%s.d", opt); + buf[1] = NULL; + + run_parts(&buf, 2, environ); + free(buf[0]); --w vodz
* Patch from Lars Kellogg-Stedman:Eric Andersen2003-07-031-18/+37
| | | | | | | | | | | | | | | | | | | | | | | | Erik, et al. The attached patch makes the following changes to networking/ifupdown.c: (1) It swaps all calls to 'ip link set' and 'ip addr set'. This solves two problems: (a) Calling 'ip link set <dev> up' before assigning an address generates an error message, and (b) Under User Mode Linux, running in with ethernet interfaces in daemon mode, the MAC address for an interface is selected based on the IP address assigned to that interface. If the interface is brought up before being assigned an IP address, it gets a null MAC. (2) It further cleans up run_mapping(). This patch is against ifupdown.c revision 1.25. -- Lars
* Fixup whitespace handing, fixing some annoying behavior andEric Andersen2003-06-201-10/+21
| | | | a couple of segfaults
* Patch from Lars Kellogg-Stedman, lars at larsshack.org, toEric Andersen2003-06-051-6/+12
| | | | make ifupdown's mapping function work as documented.
* Patch from David Updegraff to avoid corrupting memory while parsing theEric Andersen2003-04-191-2/+5
| | | | | networks/iterfaces file with next_word routine. Without this, next_word increments one beyond the end of the string.
* Yet another rather large face lift. It now works for me as expected.Eric Andersen2003-04-021-488/+486
| | | | -Erik
* Major coreutils update.Manuel Novoa III2003-03-191-42/+42
|
* Fix a couple more ifupdown bugsEric Andersen2003-02-031-2/+2
|
* This seems sufficient for ifup and ifdown to actually workEric Andersen2003-01-271-35/+55
| | | | as advertised. Works for me (at least with glibc)
* New test mode that allows run_parts to fail silently if the directoryGlenn L McGrath2003-01-201-1/+1
| | | | is not found. Patch from Bastian Blank
* Fix leading spaces bug, free line buffer, redo next_word, save someGlenn L McGrath2003-01-141-56/+43
| | | | space.
* Option to allow ifupdown use ip commands instead of ifconfig, add flushGlenn L McGrath2003-01-131-5/+64
| | | | command to ipaddr, patch by Bastian Blank
* Start to cleanup handling of the state file, save some space and uses linked ↵Glenn L McGrath2002-12-081-103/+104
| | | | lists.
* Differentiate struct and type namesGlenn L McGrath2002-12-071-78/+78
|
* Fix command that brings down loopbackGlenn L McGrath2002-12-071-1/+1
|
* Use libbb/get_line_from_file, change default state file locationGlenn L McGrath2002-12-061-128/+39
|
* Make mapping a config option again to save space, turn off file locking, do ↵Glenn L McGrath2002-12-061-12/+20
| | | | we really need it ?
* Fix bug that stoped -a workingGlenn L McGrath2002-12-061-1/+3
|
* Fix simple syntax errorGlenn L McGrath2002-11-261-1/+1
|
* Dont use xargsGlenn L McGrath2002-11-191-2/+2
|
* dont use the -i option of xargsGlenn L McGrath2002-11-191-2/+2
|
* Remove mapping option, its should always be usedGlenn L McGrath2002-11-171-20/+0
|
* Make ifupdown use internal run_partsGlenn L McGrath2002-11-111-7/+8
|
* Move awk from textutils to editors. Cleanup run-parts, saves 200 bytes, ↵Glenn L McGrath2002-11-111-4/+5
| | | | moves the guts of run_parts to libbb to be used by ifupdown.
* Fixup a previous defineGlenn L McGrath2002-11-101-1/+1
|
* Make mapping support a definable feature, saves 1.6kBGlenn L McGrath2002-11-101-31/+39
|
* debian compatable ifup and ifdown commandsGlenn L McGrath2002-11-091-0/+1437