aboutsummaryrefslogtreecommitdiff
path: root/networking (follow)
Commit message (Collapse)AuthorAgeFilesLines
* ifconfig: do not accept "ifconfig eth0 up 1.2.3.4/17" (ip with mask). Closes ↵Denys Vlasenko2013-01-202-88/+81
| | | | | | | | | 5786 function old new delta ifconfig_main 1221 1237 +16 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* whitespace cleanup. no code changesDenys Vlasenko2013-01-1412-30/+36
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ntpd: fix incorrect m_status field in outgoing packets. Closes 5120Paul Marks2013-01-141-1/+1
| | | | | | | | | | | | | When using busybox ntpd with an NTPv3 client and NTPv4 server (or vice versa), the version numbers can be incorrectly ORed together, yielding the bogus value of "NTPv7". This makes ntpd unusable with clients such as Chrony and Windows "Internet Time". This patch avoids the version mangling, by copying only the Leap Indicator bits from the server's status field. Signed-off-by: Paul Marks <paul@pmarks.net> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* whitespace fixes. no code changesDenys Vlasenko2013-01-1411-46/+44
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ifenslave: fix missing close parenMike Frysinger2012-12-261-1/+1
| | | | | Reported-by: David J Cozatt <ygdrasil@comcast.net> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* CONFIG_PID_FILE_PATH: new configuration option for pidfile pathsAnthony G. Basile2012-12-193-5/+6
| | | | | | | | | | | | | | | We set a default path for the directory where pidfiles are create when FEATURE_PIDFILE is selected. The default has no effect on applets which must specify a pidfile path on the command line to run, and it can be overridden by applets which optionally allow the user to specify the pidfile path. We also add pidfile write/remove support for klogd, ntpd and watchdog. For syslogd, we add a missing remove_pidfile() for better cleanup on daemon exit. Signed-off-by: Anthony G. Basile <blueness@gentoo.org> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* ifupdown: code shrinkDenys Vlasenko2012-11-091-7/+4
| | | | | | | function old new delta execute 571 548 -23 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ifupdown: remove unused errno assignmentsDenys Vlasenko2012-11-051-6/+3
| | | | | | | function old new delta execute 607 571 -36 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ifupdown: simple code shrinkDenys Vlasenko2012-11-051-2/+2
| | | | | | | function old new delta execute 631 607 -24 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* brctl: fix description and usageNicolas Thill2012-09-292-4/+4
| | | | | | | | brctl uncorrectly displays the "showmacs" command as being supported while it is not, remove it from the usage and Config.src file. Signed-off-by: Nicolas Thill <nico@openwrt.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcpc[6]: allow discover_retries == 0 (infinite)Felix Fietkau2012-09-272-4/+4
| | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ushcpc: gracefully handle packets with CHECKSUM_PARTIALAlexey Froloff2012-09-171-8/+49
| | | | | | | | | | | function old new delta udhcp_recv_raw_packet 415 579 +164 change_listen_mode 317 370 +53 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 2/0 up/down: 217/0) Total: 217 bytes Signed-off-by: Alexey Froloff <raorn@raorn.name> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* telnet: convert Enter -> CR LF in line mode tooDenys Vlasenko2012-09-171-11/+18
| | | | | | | function old new delta handle_net_output 87 98 +11 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* telnet: shrink literal string sizeDenys Vlasenko2012-09-171-4/+4
| | | | | | | | text data bss dec hex filename 888483 497 7584 896564 dae34 busybox_old 888450 497 7584 896531 dae13 busybox_unstripped Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* telnet: convert CR -> CR LF, not CR -> CR NUL when sending data to serverDenys Vlasenko2012-09-132-17/+6
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* wget: reorder fread and poll: poll only if fread returns EAGAIN. Closes 5426Denys Vlasenko2012-09-031-52/+62
| | | | | | | function old new delta retrieve_file_data 451 427 -24 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* httpd_indexcgi.c: fix compile failureDenys Vlasenko2012-09-031-0/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Fix compile failure in ll_proto.cDenys Vlasenko2012-09-031-2/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ll_proto.c: code shrinkDenys Vlasenko2012-09-021-23/+85
| | | | | | | | text data bss dec hex filename 762 0 0 762 2fa ll_proto.o.old 526 0 0 526 20e ll_proto.o Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* style fixes, no code changesDenys Vlasenko2012-09-021-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* wget: try reading after poll timeout - stdio may have buffered data. Closes 5426Denys Vlasenko2012-08-161-7/+14
| | | | | | | function old new delta retrieve_file_data 436 451 +15 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcp[cd]: fix binding to network aliases. Closes 5432, 5438Denys Vlasenko2012-08-101-1/+9
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcpc: make -O <numeric_opt> work. Closes 5402Denys Vlasenko2012-07-273-13/+21
| | | | | | | | | | | | | function old new delta udhcpc_main 2642 2685 +43 udhcp_recv_raw_packet 414 415 +1 d6_recv_raw_packet 248 249 +1 udhcpc6_main 2430 2413 -17 add_client_options 239 213 -26 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 3/2 up/down: 45/-43) Total: 2 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Add yet another missing ALIGN2 on a global declaration.Denys Vlasenko2012-07-261-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* dhcpd: write lease file on exitDenys Vlasenko2012-07-241-4/+4
| | | | | | | function old new delta udhcpd_main 1431 1403 -28 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: declare strings with ALIGN1, as appropriateMichael Tokarev2012-07-241-2/+2
| | | | | Signed-off-by: Michael Tokarev <mjt@tls.msk.ru> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* tftpd: fix -u USER to work with chroot. Closes 5348Denys Vlasenko2012-07-181-32/+32
| | | | | | | | function old new delta tftpd_main 546 568 +22 tftp_protocol 1844 1839 -5 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ftpd: free allocated string on error pathDenys Vlasenko2012-07-111-0/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ftpd: fix MDTM's month value. Closes 5336Denys Vlasenko2012-07-111-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* include sys/resource.h where neededMike Frysinger2012-07-053-0/+3
| | | | | | | | We use functions from sys/resource.h in misc applets, but don't include the header. This breaks building with newer glibc versions, so add the include where needed. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* wget: fix wget-supports--P testsuite failure. Closes 4940Denys Vlasenko2012-06-171-6/+4
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* config: do not refer to HTTPS for wgetPierre Carrier2012-06-171-2/+2
| | | | | Signed-off-by: Pierre Carrier <pierre@spotify.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* wget: make -c _not_ truncate the fileDenys Vlasenko2012-06-171-2/+14
| | | | | | | | function old new delta retrieve_file_data 396 436 +40 reset_beg_range_to_zero 52 45 -7 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* wget: correctly handle failure to -c (continue)Denys Vlasenko2012-06-131-0/+16
| | | | | | | | function old new delta reset_beg_range_to_zero - 52 +52 wget_main 2168 2189 +21 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* wget: add dummy --no-cacheVladimir Dronnikov2012-06-131-10/+16
| | | | | | | | | function old new delta static.wget_longopts 155 166 +11 packed_usage 29259 29231 -28 Signed-off-by: Vladimir Dronnikov <dronnikov@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* su: do not change to home dir unless -lPascal Bellard2012-06-121-1/+1
| | | | | Signed-off-by: Pascal Bellard <pascal.bellard@ads-lu.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ntpd: on time step, kill all outstanding replies from other peersDenys Vlasenko2012-06-111-20/+30
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* inetd: fix build failure in AndroidTias Guns2012-06-101-0/+1
| | | | | Signed-off-by: Tias Guns <tias@ulyssis.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* brctl: fix build failure by s/strtotimeval/bb_strtotimeval/ (android has ↵Denys Vlasenko2012-06-101-2/+2
| | | | | | | strtotimeval) Signed-off-by: Tias Guns <tias@ulyssis.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ifplugd: tweak help textDenys Vlasenko2012-06-031-3/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcpc[6]: show select timeout in logDenys Vlasenko2012-06-022-2/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcpc6: depend on ipv6Mike Frysinger2012-05-021-4/+5
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* ifupdown: improve compatibility with DebianAndreas Oberritter2012-04-231-8/+12
| | | | | | | | | | | Set environment variable 'PHASE'. Treat post-up and pre-down as aliases for up and down. Uses the same logic as ifupdown.nw from ifupdown-0.6.16. Makes it possible to execute Debian's ifupdown script for wpa-supplicant. Signed-off-by: Andreas Oberritter <obi@opendreambox.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcpc: fix improper size calculation for OPTION_STRING_HOSTDenys Vlasenko2012-04-221-0/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* fix build breakage found by randconfigDenys Vlasenko2012-04-203-2/+8
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcp: make arpping code resistant to time jumpsDenys Vlasenko2012-04-171-2/+7
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* httpd: emit correct content length on range requests past the end. Closes 4952Rob Walker2012-04-031-1/+1
| | | | | Signed-off-by: Rob Walker <rwalker@codeaurora.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hostname: make -i not emit extra trailing spaceDenys Vlasenko2012-04-011-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ntpd: fix build failure if !NTPD_SERVER. Closes 4994Denys Vlasenko2012-04-011-10/+13
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ftp{get,put}: tweak help textDenys Vlasenko2012-03-191-17/+17
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>