aboutsummaryrefslogtreecommitdiff
path: root/networking (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* netstat: fix IPv6 problem (garbage in scope_id); code shrinkDenys Vlasenko2010-10-271-47/+62
| | | | | | | | | | | | | | | | | function old new delta add_to_prg_cache_if_socket - 253 +253 print_inet_line 226 241 +15 udp_do_one 119 131 +12 tcp_do_one 65 77 +12 unix_do_one 530 529 -1 dir_act 215 207 -8 netstat_main 585 553 -32 .rodata 145592 145525 -67 file_act 255 - -255 ------------------------------------------------------------------------------ (add/remove: 1/1 grow/shrink: 3/4 up/down: 292/-363) Total: -71 bytes Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* netstat: fix -r display in usage textBob Dunlop2010-10-271-28/+50
| | | | | Signed-off-by: Bob Dunlop <bob.dunlop@xyzzy.org.uk> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* nbd-client: kill unused variable (total 0 bytes)Alexander Shishkin2010-10-221-0/+2
| | | | | Signed-off-by: Alexander Shishkin <virtuoso@slind.org> Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* udhcpd: reduce stack usage by ~700 bytes. +28 bytes code sizeDenys Vlasenko2010-10-212-5/+14
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* ntpd: fix usage text and a typo in constant nameLeonid Lisovskiy2010-10-201-5/+5
| | | | | Signed-off-by: Leonid Lisovskiy <lly.dev@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcpc: exit if iface disappeared; use correct MAC if it changesDenys Vlasenko2010-10-201-6/+14
| | | | | | | function old new delta udhcpc_main 2560 2618 +58 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcpc: reduce stack usage by de-inlining routines with on-stack pkt bufDenys Vlasenko2010-10-201-10/+11
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcpc: periodically reread our ifindex and macDenys Vlasenko2010-10-201-0/+10
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcpc: emit maxsize option in all non-NAK type packetsDenys Vlasenko2010-10-201-18/+90
| | | | | | Before, we were sending them only in DISCOVER packets. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* dhcp: typo fix: UPD_DHCP_SIZE -> UDP_DHCP_SIZEDenys Vlasenko2010-10-202-7/+7
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* udhcpc: better help textDenys Vlasenko2010-10-201-9/+15
| | | | | | | function old new delta packed_usage 27452 27486 +34 Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* udhcpc: remove now-unneeded definitions of vendor and client-id optsDenys Vlasenko2010-10-201-3/+4
| | | | | | | function old new delta dhcp_optflags 68 64 -4 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcpc: remove -c CLIENTID, it is hard to use, -x 61:hexstring does the same ↵Denys Vlasenko2010-10-202-41/+37
| | | | | | | | | | | | | better function old new delta packed_usage 27802 27808 +6 static.udhcpc_longopts 261 250 -11 udhcpc_main 2799 2780 -19 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/2 up/down: 6/-30) Total: -24 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcpc: move usage text to .c file. no code changesDenys Vlasenko2010-10-201-0/+78
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: deinline SWAP_xE64 on 32-bit CPUs. Wins !90 bytes both on 32 and 64 bitsDenys Vlasenko2010-10-182-24/+3
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* *: use SWAP_BE64 instead of open-coding itDenys Vlasenko2010-10-182-2/+2
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* udhcpc: fix OPTION_IP_PAIR parsingVladislav Grishenko2010-10-171-7/+10
| | | | | | | | | | http://git.busybox.net/busybox/commit/?id=7d3a48a003cd645edfae2b404493688022 revealed incorrect OPTION_IP_PAIR implementation, which doesn't respect option length and causes erroneous classful routes, composed from garbage or first bytes from the next DHCP packet option. Signed-off-by: Vladislav Grishenko <themiron@mail.ru> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* tweaks to build system, mainly making menuconfig text and order clearerDenys Vlasenko2010-10-121-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* tweak help textDenys Vlasenko2010-10-091-1/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* dhcprelay: code shrink, and explain its workings a bit moreDenys Vlasenko2010-10-061-71/+118
| | | | | | | | | | function old new delta sendto_ip4 - 55 +55 dhcprelay_main 1059 942 -117 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 0/1 up/down: 55/-117) Total: -62 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ntpd: allow peer-less (standalone stratum 1 server) operationDenys Vlasenko2010-10-041-2/+11
| | | | | | | | | | Based on patch by Jean-Christophe Dubois (jcd@tribudubois.net) function old new delta ntp_init 384 399 +15 recv_and_process_client_pkt 469 480 +11 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcp: add support for 0x21 ROUTES and 0xf9 MS_STATIC_ROUTES optionsVladislav Grishenko2010-09-262-0/+6
| | | | | Signed-off-by: Vladislav Grishenko <themiron@mail.ru> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* wget: flush output to network before receving replyNguyễn Thái Ngọc Duy2010-09-231-0/+2
| | | | | Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* nbd-client: new appletRob Landley2010-09-231-0/+153
| | | | | | | | | | | | | | | | | function old new delta nbdclient_main - 537 +537 daemon - 162 +162 packed_usage 27682 27724 +42 applet_names 2355 2366 +11 bbconfig_config_bz2 4918 4922 +4 applet_main 1376 1380 +4 applet_nameofs 688 690 +2 applet_install_loc 172 173 +1 ------------------------------------------------------------------------------ (add/remove: 4/0 grow/shrink: 6/0 up/down: 763/0) Total: 763 bytes Signed-off-by: Rob Landley <rob@landley.net> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* nc: show help text on bad parametersDenys Vlasenko2010-09-071-1/+1
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* made 3 license strings to follow the usual form ("or later" bit is not changed!)Denys Vlasenko2010-09-061-1/+1
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* ifupdown: %client%, not %clientid%Denys Vlasenko2010-09-031-3/+3
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* better shared strings trickDenys Vlasenko2010-09-013-5/+5
| | | | | | | | text data bss dec hex filename 861980 441 7540 869961 d4649 busybox_old 861914 441 7540 869895 d4607 busybox_unstripped Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* iplink: another compat #ifndef/#define tweakDenys Vlasenko2010-08-301-0/+2
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* ntpd: with -q, exit after 60 seconds even if time is not synced.Denys Vlasenko2010-08-271-3/+22
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ip: add a #define for older kernelsDenys Vlasenko2010-08-221-0/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: make GNU licensing statement forms more regularDenys Vlasenko2010-08-1660-63/+63
| | | | | | | This change retains "or later" state! No licensing _changes_ here, only form is adjusted (article, space between "GPL" and "v2" and so on). Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: s/xatoi_u/xatoi_positive/g - I got bored of mistyping xatoi_u as xatou_iDenys Vlasenko2010-08-123-3/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* wget: fix ndelay_on call; progress bar: small shrinkDenys Vlasenko2010-08-081-1/+1
| | | | | | | function old new delta bb_progress_update 682 670 -12 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* wget: make -T support enabled by defaultDenys Vlasenko2010-08-081-2/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* wget: implement -T SEC; rework progress meter to not use signals (it was unsafe)Bradley M. Kuhn2010-08-082-48/+85
| | | | | | | | | | | | | | | function old new delta retrieve_file_data 364 450 +86 bb_progress_update 615 682 +67 packed_usage 27406 27422 +16 wget_main 2440 2453 +13 static.wget_longopts 145 155 +10 progress_meter 199 159 -40 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 5/1 up/down: 192/-40) Total: 152 bytes Signed-off-by: Bradley M. Kuhn <bkuhn@ebb.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Fix a typo in config textDenys Vlasenko2010-08-071-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* httpd: simplified "gzip" testPeter Korsgaard2010-07-261-11/+11
| | | | | | | | function old new delta handle_incoming_and_exit 2830 2807 -23 Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: trailing empty lines removedDenys Vlasenko2010-07-261-1/+0
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: more empty lines removed. no code changesDenys Vlasenko2010-07-262-2/+0
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: mass cosmetic removal of extra empty lines. no code changesDenys Vlasenko2010-07-263-3/+0
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* httpd: optional support for gzip-compressed pagesPeter Korsgaard2010-07-252-4/+60
| | | | | | | | | | | | function old new delta send_file_and_exit 662 761 +99 handle_incoming_and_exit 2756 2830 +74 send_headers 603 654 +51 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 3/0 up/down: 224/0) Total: 224 bytes Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* httpd: cosmetic fixes, no code changesDenys Vlasenko2010-07-251-30/+23
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libiproute: code shrink by adding FAST_FUNCDenys Vlasenko2010-07-248-24/+23
| | | | | | | | | | | | | | | | | function old new delta ipaddr_list_or_flush 1282 1293 +11 ip_parse_common_args 153 151 -2 ip_main 53 50 -3 ip_do 19 15 -4 do_iptunnel 985 980 -5 do_iprule 982 977 -5 do_iplink 1637 1631 -6 do_iproute 2105 2098 -7 do_ipaddr 1406 1398 -8 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/8 up/down: 11/-40) Total: -29 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ip: fix "ip r" breakageDenys Vlasenko2010-07-241-39/+23
| | | | | | | | | | function old new delta static.ip_func_ptrs - 32 +32 ip_main 110 53 -57 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 0/1 up/down: 32/-57) Total: -25 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libnetlink: code shrinkNatanael Copa2010-07-232-27/+17
| | | | | | | | | | | | | function old new delta xrtnl_open 95 93 -2 parse_rtattr 87 85 -2 rtnl_close 9 - -9 xrtnl_wilddump_request 101 64 -37 ------------------------------------------------------------------------------ (add/remove: 0/1 grow/shrink: 0/3 up/down: 0/-50) Total: -50 bytes Signed-off-by: Natanael Copa <natanael.copa@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ifplugd: code shrinkMaksym Kryzhanovskyy2010-07-221-169/+164
| | | | | | | | | | | | | function old new delta ifplugd_main 1089 1161 +72 method_table - 40 +40 detect_link 221 207 -14 static.method 40 - -40 netlink_open 79 - -79 ------------------------------------------------------------------------------ (add/remove: 1/2 grow/shrink: 1/1 up/down: 112/-133) Total: -21 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* tcpsvd,udpsvd: conditionalize usage of SO_ORIGINAL_DSTJeremie Koenig2010-07-192-2/+5
| | | | | | | On systems without this call, $TCPORIGDSTADDR is not set. Signed-off-by: Jeremie Koenig <jk@jk.fr.eu.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libbb: conditionalize AF_* usage in error reportingJeremie Koenig2010-07-191-1/+0
| | | | | Signed-off-by: Jeremie Koenig <jk@jk.fr.eu.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mark Linux-specific configuration optionsJeremie Koenig2010-07-192-1/+24
| | | | | | | | PLATFORM_LINUX is used as a dependency for applets or features which require Linux-specific interfaces. Signed-off-by: Jeremie Koenig <jk@jk.fr.eu.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>