aboutsummaryrefslogtreecommitdiff
path: root/networking (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* iproute: fix parsing and matching of of "short" IP addrs like 10/8Denys Vlasenko2011-02-234-38/+74
| | | | | | | | | | | function old new delta print_route 1613 1813 +200 get_addr_1 209 258 +49 get_prefix 393 356 -37 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 2/1 up/down: 249/-37) Total: 212 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* wget: reduce bloatPere Orga2011-02-191-7/+3
| | | | | Signed-off-by: Pere Orga <gotrunks@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcpd: optional IP selection based on MAC hashVladislav Grishenko2011-02-162-8/+50
| | | | | | | | function old new delta find_free_or_expired_nip 153 225 +72 Signed-off-by: Vladislav Grishenko <themiron@mail.ru> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* wget: check for final write errors for -O FILE tooDenys Vlasenko2011-02-151-0/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* wget: make "wget -O FILE URL1 URL2" concatenate outputDenys Vlasenko2011-02-151-29/+37
| | | | | | | | | | | | | | Also fixes a few cases where URL1's data (like start pos) was leaking into URL2 function old new delta wget_main 2303 2321 +18 progress_meter 140 152 +12 retrieve_file_data 397 396 -1 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 2/1 up/down: 30/-1) Total: 29 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* wget: fix SEGV with multiple urls and redirectionPere Orga2011-02-141-0/+1
| | | | | Signed-off-by: Pere Orga <gotrunks@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcpc: use more correct, and more importantly, more understandable BPF codeVladislav Grishenko2011-02-141-20/+24
| | | | | Signed-off-by: Vladislav Grishenko <themiron@mail.ru> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* wget: support multiple URLs on command line even without -O :)Denys Vlasenko2011-02-131-55/+15
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* wget: support multiple URLs on command lineDenys Vlasenko2011-02-131-129/+160
| | | | | | | | | | | function old new delta wget_main 2190 2310 +120 progress_meter 124 140 +16 parse_url 288 304 +16 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 3/0 up/down: 152/0) Total: 152 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* typo fix in commentDenys Vlasenko2011-02-121-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* wget: display 100% at the _end_ of chunked downloadDenys Vlasenko2011-02-111-2/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* wget: chunked mode fix. Closes bug 3229Denys Vlasenko2011-02-111-10/+16
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* wget: explain clearerr more clearlyDenys Vlasenko2011-02-111-1/+10
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* wget: correctly handle rare case when we get EAGAIN _on first_ readDenys Vlasenko2011-02-111-6/+26
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* progress meter: fix bugs found in stall detection and unknown size logicDenys Vlasenko2011-02-111-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* progress meter: move file name to bb_progress_t. +20 bytesDenys Vlasenko2011-02-112-7/+7
| | | | | | We were doing expensive unicode conversion on every update Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* wget: shrink progress meter code; strink wget and add debug loggingDenys Vlasenko2011-02-101-34/+40
| | | | | | | | | | | | | | function old new delta fgets_and_trim - 73 +73 retrieve_file_data 367 349 -18 bb_progress_update 723 699 -24 wget_main 2220 2190 -30 ftpcmd 133 87 -46 gethdr 200 153 -47 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 0/5 up/down: 73/-165) Total: -92 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* wget: use closed HTTP/1.1 connection, stop when we dl'ed $content_len bytesDenys Vlasenko2011-02-101-8/+19
| | | | | | | function old new delta retrieve_file_data 353 367 +14 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* save 10 bytes on stringsDenys Vlasenko2011-02-101-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* wget: remove functions which retry on EINTRDenys Vlasenko2011-02-101-3/+5
| | | | | | | | | | function old new delta retrieve_file_data 392 353 -39 safe_fgets 58 - -58 ------------------------------------------------------------------------------ (add/remove: 0/1 grow/shrink: 0/1 up/down: 0/-97) Total: -97 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* fix trivial build failureDenys Vlasenko2011-02-101-2/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* wget: use FEATURE_COPYBUF_KB-sized buffer. Much faster for local transfersDenys Vlasenko2011-02-101-60/+61
| | | | | | | | | | | | | | | function old new delta base64enc - 53 +53 gethdr 190 200 +10 ftpcmd 129 133 +4 progress_meter 160 122 -38 retrieve_file_data 431 392 -39 base64enc_512 46 - -46 wget_main 2456 2220 -236 ------------------------------------------------------------------------------ (add/remove: 1/1 grow/shrink: 2/3 up/down: 67/-359) Total: -292 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* tc: less ugly check for bad sizeof(G)Denys Vlasenko2011-02-101-6/+4
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* iproute: fix handling of "dev IFACE" selectorDenys Vlasenko2011-02-092-14/+25
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcpc: fix a problem with binary-encoded optionsDenys Vlasenko2011-02-061-1/+1
| | | | | | | function old new delta attach_option 395 413 +18 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ping: trivial simplification. -2 bytesDenys Vlasenko2011-02-061-4/+6
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ping: fix IPv6 pinging. Closes bug 3187Denys Vlasenko2011-02-051-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* whitespace fixesDenys Vlasenko2011-02-032-3/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* move utmp.h include to libbb.hDenys Vlasenko2011-01-251-4/+0
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* eliminate aliasing warnings in traceroute.c and udhcp/socket.cDenys Vlasenko2011-01-202-12/+16
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* eliminate aliasing warning in networking/route.cDenys Vlasenko2011-01-202-36/+41
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ifplugd: eliminate aliasing warningsDenys Vlasenko2011-01-201-10/+14
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mass removal of underscores from _BB_DIR_foo and _BB_SUID_fooDenys Vlasenko2011-01-182-4/+4
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* remove a few aliasing warningsDenys Vlasenko2011-01-161-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* httpd: send correct mtime for .gz filesDenys Vlasenko2011-01-111-0/+1
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* libbb unicode: comment out usused function and unused parameterDenys Vlasenko2011-01-111-1/+1
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* tftp: fix bad interaction betweel poll() and alarm(). Closes bug 3061Denys Vlasenko2011-01-101-27/+12
| | | | | | | | | | | | | | | This was breaking timeout handling. function old new delta tftp_progress_update - 45 +45 tftp_progress_done - 32 +32 tftp_protocol 1839 1858 +19 tftp_progress_init 9 15 +6 tftp_main 298 286 -12 ------------------------------------------------------------------------------ (add/remove: 2/0 grow/shrink: 2/1 up/down: 102/-12) Total: 90 bytes Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* explain every non-SUID_DROP applet. No code changesDenys Vlasenko2011-01-031-0/+1
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* udhcpc: document SIGUSRn effect in help textDenys Vlasenko2010-12-251-0/+4
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* telnetd: write utmp record with correct pidDenys Vlasenko2010-11-301-1/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ping: set not only IP_TTL, but also IP_MULTICAST_TTLDenys Vlasenko2010-11-291-2/+4
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* ping: add -t TTL optionJoachim Nilsson2010-11-283-34/+102
| | | | | | | | | | | | function old new delta common_ping_main 1755 1796 +41 packed_usage 27954 27971 +17 bbconfig_config_bz2 4965 4966 +1 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 3/0 up/down: 59/0) Total: 59 bytes Signed-off-by: Joachim Nilsson <joachim.nilsson@vmlinux.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* dhcpd: reply with NAK to clients in INIT-REBOOT state w/o existing leaseDenys Vlasenko2010-11-281-7/+11
| | | | | | We were not responding to them at all. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* use BB_EXECVP_or_die where appropriateDenys Vlasenko2010-11-281-2/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* dhcpd: smaller code: do not look for REQUESTED_IP twiceDenys Vlasenko2010-11-281-26/+30
| | | | | | | | text data bss dec hex filename 883235 936 17192 901363 dc0f3 busybox_old 883219 936 17192 901347 dc0e3 busybox_unstripped Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* nc: fix SEGV on -v when NC_EXTRA is offDenys Vlasenko2010-11-221-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* inetd: if argv[0] is not specified, set it to program nameMike Frysinger2010-11-221-0/+6
| | | | | | | With inetd.conf files that skip argv[], inetd execs programs with argc==0. Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ip: Fix command line option parsing of "ip route get ..."Christian Hornung2010-11-041-1/+1
| | | | | | | | | | | I found and fixed a bug in the command line options parsing of "ip route get": It was impossible to get any option other than the IP address recognized correctly, and e.g. the command "ip route get connected" just hung up infinitely in the options parsing loop instead of printing an error message. Signed-off-by: Christian Hornung <chhornung@googlemail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* networking/*: remove superfluous commentsDenys Vlasenko2010-10-305-11/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* whitespace cleanupDenys Vlasenko2010-10-2928-132/+103
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>