aboutsummaryrefslogtreecommitdiff
path: root/networking (follow)
Commit message (Collapse)AuthorAgeFilesLines
* adds the ability to use and calculate network prefix specifications insteadbug12003-09-022-11/+80
| | | | | | | | | of netmasks. It also fixes the parameters for network and netmask to match that of the official Red Hat version (-n for network and -m for netmask). Patch by Joshua Jackson git-svn-id: svn://busybox.net/trunk/busybox@7369 69ca8d6d-28ef-0310-b511-8ec308f3f277
* move all "-/bin/sh" "/bin/sh" and "sh" to libbb/messages.c file as onebug12003-09-022-3/+3
| | | | | | | | constant. Vodz last_patch_107 git-svn-id: svn://busybox.net/trunk/busybox@7365 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Allow one to detect and handle the case where no lease could be obtainedbug12003-09-011-0/+1
| | | | | | | | via DHCP. (Just add a section "failed" to your script.) Patch by Steven Scholz git-svn-id: svn://busybox.net/trunk/busybox@7344 69ca8d6d-28ef-0310-b511-8ec308f3f277
* "Without this patch, udhcpcd output may be buffered and delayed forbug12003-08-301-0/+2
| | | | | | | for minutes if stdout is not a tty." -vda@ git-svn-id: svn://busybox.net/trunk/busybox@7298 69ca8d6d-28ef-0310-b511-8ec308f3f277
* "Due to a wrong format parameter in a printf httpd does not work whenbug12003-08-291-1/+8
| | | | | | | | compiled for with CONFIG_LFS (large file support). The attached patch suggested by Vladimir fixes that." - Steven Scholz git-svn-id: svn://busybox.net/trunk/busybox@7292 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove stray '\n'bug12003-08-292-3/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7289 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove unused filesbug12003-08-293-136/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7288 69ca8d6d-28ef-0310-b511-8ec308f3f277
* "This function was not updating the argc and argv pointers to reflectbug12003-08-291-0/+2
| | | | | | | | | the arguments it consumed, which means the calling function encountered them as well. As a result, a command like "ip -6 addr" was yielding a usage error." - Philip Blundell git-svn-id: svn://busybox.net/trunk/busybox@7282 69ca8d6d-28ef-0310-b511-8ec308f3f277
* label's dont work in v4 tunnels, patch by Eric Spakmanbug12003-08-291-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7281 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Correct logic in determining size of block to download, as pointed outbug12003-08-291-2/+2
| | | | | | | by Junio C Hamano git-svn-id: svn://busybox.net/trunk/busybox@7277 69ca8d6d-28ef-0310-b511-8ec308f3f277
* "When the initial request by wget is responded by a 3XX redirectbug12003-08-281-2/+5
| | | | | | | | | | | | | | response sent in chunked transfer encoding, the code path to resubmit the request to the redirected URL forgets to reset got_clen and chunked variables in the loop. If the redirected URL does not use chunked transfer encoding, this causes the code that slurps the body of the response to incorrectly try to parse out the chunk length which does not exist." - junkio@ ---------------------------------------------------------------------- git-svn-id: svn://busybox.net/trunk/busybox@7275 69ca8d6d-28ef-0310-b511-8ec308f3f277
* "When the filesize is known from content-length header, safe_fread isbug12003-08-281-13/+15
| | | | | | | | | | | always told to read sizeof(buf). This waits until the underlying fread() to time-out for the last part of the downloaded body. Fix this by sending the number of remaining bytes to read when known." - junkio@ I reworked the logic in his patch git-svn-id: svn://busybox.net/trunk/busybox@7274 69ca8d6d-28ef-0310-b511-8ec308f3f277
* *** empty log message ***bug12003-08-281-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7273 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Begin using the new "select" option. Good stuff!andersen2003-08-081-8/+30
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7189 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Eric Spakman writes: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. git-svn-id: svn://busybox.net/trunk/busybox@7175 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Eric Spakman writes: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. git-svn-id: svn://busybox.net/trunk/busybox@7138 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Christian Meyer provided this patch to fix more bugs with the tftp clientandersen2003-07-301-3/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7136 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Match up interfacesandersen2003-07-291-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7132 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Bruno Randolf writes: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 git-svn-id: svn://busybox.net/trunk/busybox@7130 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fixup bugs in last patchandersen2003-07-281-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7122 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Update docs a bitandersen2003-07-281-8/+9
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7121 69ca8d6d-28ef-0310-b511-8ec308f3f277
* last_patch95 from vodz:andersen2003-07-284-16/+88
| | | | | | | | | | | | | | | | | | | | Hi. Last patch have new libbb function vfork_rexec() for can use daemon() to uClinux system. This patched daemons: syslog, klogd, inetd, crond. This not tested! I havn`t this systems. Also. Previous patch for feature request MD5 crypt password for httpd don`t sended to this mailist on 07/15/03 (mailist have Pytom module problem?). The previous patch included, and have testing. --w vodz git-svn-id: svn://busybox.net/trunk/busybox@7119 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Allow people to use the full blown iproute2 programs with busybox ifupdown.andersen2003-07-261-4/+21
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7114 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Christian Meyer:andersen2003-07-261-0/+1
| | | | | | | | The client gives up way too soon because timeout is set to 0 ... There's a solution for that problem. git-svn-id: svn://busybox.net/trunk/busybox@7110 69ca8d6d-28ef-0310-b511-8ec308f3f277
* There is no need to expose CONFIG_FEATURE_TRACEROUTE_SO_DEBUGandersen2003-07-221-7/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7098 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Terje Kvernes adding quite a lot of missing documentationandersen2003-07-221-27/+45
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7093 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove remaining libc5 support codeandersen2003-07-223-185/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7090 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Update a bunch of docs. Run a script to update my email addr.andersen2003-07-149-10/+10
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7061 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Thomas Cameron:andersen2003-07-142-24/+56
| | | | | | | | | | | | | | Hello all, This patch adds more "Help" text to the config system. Almost all applets now have a help entry. Also, I cleaned up the spacing of the existing text so that things are consistent. This patch is against this morning's CVS. Thomas Cameron CEI Systems, Inc. git-svn-id: svn://busybox.net/trunk/busybox@7058 69ca8d6d-28ef-0310-b511-8ec308f3f277
* On second thought, this is a better way to fix thingsandersen2003-07-141-46/+5
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7050 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Don't use Linux kernel headersandersen2003-07-141-3/+46
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@7049 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Lars Kellogg-Stedman:andersen2003-07-051-0/+9
| | | | | | | | Glibc 2.1.3 (used by the Hardhat Linux SDK distributed by Cyclades) does not define IF_NAMESIZE in net/if.h. git-svn-id: svn://busybox.net/trunk/busybox@7040 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Lars Kellogg-Stedman:andersen2003-07-051-7/+14
| | | | | | | | | This patch fixes endian problems with get_netmask(). I don't know if this is the cleanest solution, but it makes 'ipcalc -n' work on both an i386 system and a ppc system. git-svn-id: svn://busybox.net/trunk/busybox@7039 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Vladimir N. Oleynik (vodz):andersen2003-07-031-35/+14
| | | | | | | | Last patch have changed for "ipcalc" applet with usage new get_ulflags() function. git-svn-id: svn://busybox.net/trunk/busybox@7034 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Lars Kellogg-Stedman: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 git-svn-id: svn://busybox.net/trunk/busybox@7033 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Geir Thomassen wrote, regarding networking/httpd.c line 1358andersen2003-06-261-73/+69
| | | | | | | | | | | | | | | | | Hello, I think the test for an unconfigured httpd is wrong in the CVS (busybox-unstable-20030620.tar.bz2) flg_deny_all is default 0 vodz then wrote: Oops. You are right. Also, this mistake haved from two place. Last patch rewroted to my new get_ularg() function for overcompensate size from this error found ;-) git-svn-id: svn://busybox.net/trunk/busybox@6981 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix a silly bug I introduced yesterdayandersen2003-06-211-1/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@6960 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fixup whitespace handing, fixing some annoying behavior andandersen2003-06-201-10/+21
| | | | | | | a couple of segfaults git-svn-id: svn://busybox.net/trunk/busybox@6949 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix a couple vars that could be used uninitializedandersen2003-06-201-1/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@6944 69ca8d6d-28ef-0310-b511-8ec308f3f277
* use an explicit cast on some types that change size whenandersen2003-06-201-2/+2
| | | | | | | large file support is enabled. git-svn-id: svn://busybox.net/trunk/busybox@6943 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Make gcc not whine about "deprecated use of label at end of compound statement"andersen2003-06-201-0/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@6942 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Lars Kellogg-Stedman:andersen2003-06-204-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | I'm building BusyBox using a development kit for MontaVista Hardhat Linux (PPC) -- which, at least in this instance, is based around kernel 2.2.14. I've had to massage a few files in networking/libiproute/ to make it compile. Specifically: (1) Added a #include <sys/uio.h> for the iovec structure in libnetlink.c, (2) Put ifdefs in ll_types.c and ll_proto.c around various constants (ETH_P_xxx and ARPHRD_xxx) that weren't defined, (3) Make do_changename() in iplink.c require a kernel >= 2.4.0 -- the ifr structure in my environment doesn't have the ifr_name attribute. I've assumed this is a kernel dependency -- let me know if I ought to be checking something else. In the absence of the correct kernel, do_changename() always returns 0. Attached is a patch against the current CVS that will make these changes. -- Lars git-svn-id: svn://busybox.net/trunk/busybox@6940 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Add missing pieces from vodz' last_patch88andersen2003-06-143-0/+203
| | | | git-svn-id: svn://busybox.net/trunk/busybox@6922 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Vodz, last_patch_88bug12003-06-1020-355/+198
| | | | git-svn-id: svn://busybox.net/trunk/busybox@6906 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Lars Kellogg-Stedman, lars at larsshack.org, toandersen2003-06-051-6/+12
| | | | | | | make ifupdown's mapping function work as documented. git-svn-id: svn://busybox.net/trunk/busybox@6894 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Vodz, last_patch_86bug12003-05-263-51/+39
| | | | git-svn-id: svn://busybox.net/trunk/busybox@6853 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Russell Coker:andersen2003-05-221-2/+3
| | | | | | | | | The attached patch fixes a compilation error. If you compile ping6 without the CONFIG_FEATURE_FANCY_PING6 option then the compile will fail without this patch. git-svn-id: svn://busybox.net/trunk/busybox@6847 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Glenn Engelbug12003-05-191-39/+139
| | | | | | | | | | | | | | | - more comments - larger allowed number of CGI script variables - ifdefs for regression test hooks - default to ./ rather than /www (if unspecified) for compatibility with earlier versions. - Allow ip: as a synomym for A: rules for compatibility with earlier versions. - Setting of CGI_ARGLIST_ when automatic setting of env vars for form scripting is utilized. This helps with minimal systems like openap. git-svn-id: svn://busybox.net/trunk/busybox@6846 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Part of a patch from Glenn Engel, updates httpd helpbug12003-05-141-31/+43
| | | | git-svn-id: svn://busybox.net/trunk/busybox@6840 69ca8d6d-28ef-0310-b511-8ec308f3f277
* vodz, last_patch_85bug12003-05-141-39/+38
| | | | git-svn-id: svn://busybox.net/trunk/busybox@6839 69ca8d6d-28ef-0310-b511-8ec308f3f277