aboutsummaryrefslogtreecommitdiff
path: root/networking (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* httpd: add comment explaining why SERVER_NAME etc is not set.Denis Vlasenko2009-03-181-0/+2
|
* ftpd: fix command fetching to not do it in 1-byte reads;Denis Vlasenko2009-03-181-14/+51
| | | | | | | | | | | | | | | fix command de-escaping. Tested to download files with embeeded \xff and LF. libbb: tweaks for the above function old new delta ftpd_main 2231 2321 +90 xmalloc_fgets_internal 190 222 +32 xmalloc_fgets_str_len - 27 +27 xmalloc_fgets_str 7 23 +16 xmalloc_fgetline_str 10 26 +16 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 4/0 up/down: 181/0) Total: 181 bytes
* ftpd: add some commentsDenis Vlasenko2009-03-181-1/+15
|
* ftpd: trim messages (but make sure they still make sense)Denis Vlasenko2009-03-181-8/+8
| | | | | | | text data bss dec hex filename 4400 0 0 4400 1130 ftpd_old.o 4346 0 0 4346 10fa ftpd.o
* ftpd: do not use nasty tricks for re-execing if we are on MMU machine.Denis Vlasenko2009-03-181-22/+57
| | | | | | | | | | | | On NOMMU, code is alomost the same, on MMU: function old new delta handle_dir_common 223 390 +167 ftpd_main 2306 2231 -75 popen_ls 203 - -203 ------------------------------------------------------------------------------ (add/remove: 0/1 grow/shrink: 1/1 up/down: 167/-278) Total: -111 bytes
* ftpd: add support for MDTM, I see clients often use it,Denis Vlasenko2009-03-181-11/+69
| | | | | | | | | | | it may allow client-side caching. function old new delta ftpd_main 2232 2306 +74 gmtime_r - 19 +19 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 1/0 up/down: 93/0) Total: 93 bytes
* ftpd: document NLST formatDenis Vlasenko2009-03-171-0/+8
|
* ftpd: instead of wordy HELP, implement useful, and smaller, FEAT.Denis Vlasenko2009-03-171-15/+14
| | | | | | | | | (HELP is still "supported" as an alias to FEAT) text data bss dec hex filename 807331 468 7856 815655 c7227 busybox_old 807246 468 7856 815570 c71d2 busybox_unstripped
* ftpd: implement -vv verbosityDenis Vlasenko2009-03-171-9/+31
| | | | | | | | | | | | | function old new delta ftpd_main 2097 2190 +93 verbose_log - 33 +33 cmdio_write_raw 12 34 +22 cmdio_write_ok 25 45 +20 cmdio_write_error 25 45 +20 cmdio_write 62 78 +16 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 5/0 up/down: 204/0) Total: 204 bytes
* ftpd: tweak timeout codeDenis Vlasenko2009-03-171-11/+15
|
* ftpd: fix thinko: set_nport takes port in network orderDenis Vlasenko2009-03-161-1/+1
|
* ftpd: dont use fdprintf for simple status messagesDenis Vlasenko2009-03-161-44/+65
| | | | | | | | | | function old new delta ftpd_main 2025 2055 +30 cmdio_write_ok 17 25 +8 cmdio_write_error 17 25 +8 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 3/0 up/down: 46/0) Total: 46 bytes
* ftpd: simplify PORT check by assuming IP = peer's IP.Denis Vlasenko2009-03-161-1/+27
| | | | | | | | Should be as safe as before this change. function old new delta ftpd_main 2115 2025 -90
* ftpd: add idle and absolute timeouts. This is a security issue,Denis Vlasenko2009-03-161-20/+50
| | | | | | | | | | | | | otherwise ftpd may end up hanging indefinitely. function old new delta timeout_handler - 110 +110 ftpd_main 2019 2115 +96 packed_usage 25662 25685 +23 handle_upload_common 306 322 +16 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 3/0 up/down: 245/0) Total: 245 bytes
* ftpd: security tightened up:Denis Vlasenko2009-03-161-89/+107
| | | | | | | | | | | | | PORT is not allowed on !IPv4 PORT must have IP == peer's IP upload is allowed only into regular files function old new delta ftpd_main 1815 2019 +204 handle_upload_common 260 306 +46 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 2/0 up/down: 250/0) Total: 250 bytes
* ftpd: fix the bug where >2GB file ops report errors;Denis Vlasenko2009-03-151-65/+119
| | | | | | | | | | | | | | | | make a few simplifications; add TODOs. function old new delta port_or_pasv_was_seen - 37 +37 get_remote_transfer_fd 104 109 +5 handle_upload_common 265 260 -5 handle_dir_common 228 223 -5 popen_ls 211 203 -8 ftpd_main 1825 1815 -10 data_transfer_checks_ok 37 - -37 ------------------------------------------------------------------------------ (add/remove: 1/1 grow/shrink: 1/4 up/down: 42/-65) Total: -23 bytes
* *: remove LOG_NOWAITDenis Vlasenko2009-03-111-1/+1
|
* ftpd: stop unconditional logging to syslog. This was the only appletDenis Vlasenko2009-03-111-6/+9
| | | | | | | | | which was doing it. Added option -S to enable it when desired. function old new delta packed_usage 25647 25666 +19 ftpd_main 1826 1825 -1
* docs/logging_and_backgrounding.txt: new mini-docDenis Vlasenko2009-03-116-57/+53
| | | | | | | | | | | | | | | | | | | | | dnsd: remove statics, remove nerly-useless SIGINT handler crond: correct more of logfile to 0666 (as usual, umask allows user to remove unwanted bits). nameif: print errors to stderr too, not just to syslog function old new delta udhcp_read_interface 308 306 -2 ttl 4 - -4 fileconf 4 - -4 dnsentry 4 - -4 interrupt 19 - -19 dnsd_main 1463 1394 -69 ------------------------------------------------------------------------------ (add/remove: 0/4 grow/shrink: 0/2 up/down: 0/-102) Total: -102 bytes text data bss dec hex filename 808161 476 7864 816501 c7575 busybox_old 807994 468 7856 816318 c74be busybox_unstripped
* ftpd: add LOG_NDELAY to openlogDenis Vlasenko2009-03-091-1/+2
|
* ftpd: reuse ls applet for LIST/NLST/STAT generationDenis Vlasenko2009-03-091-246/+154
| | | | | | | | | | | | | | | | | | | | | | | function old new delta popen_ls - 211 +211 ftpd_main 1760 1826 +66 handle_dir_common 199 228 +29 get_remote_transfer_fd 89 104 +15 replace_char 30 34 +4 handle_upload_common 263 265 +2 bind_for_passive_mode 129 121 -8 cmdio_write 84 62 -22 escape_text 166 136 -30 init_data_sock_params 81 - -81 ftpdataio_dispose_transfer_fd 87 - -87 write_dirstats 149 - -149 write_filestats 603 - -603 ------------------------------------------------------------------------------ (add/remove: 1/4 grow/shrink: 11/5 up/down: 384/-986) Total: -602 bytes text data bss dec hex filename 808804 476 7864 817144 c77f8 busybox_old 808156 476 7864 816496 c7570 busybox_unstripped
* ftpd: EPSV and SIZE support. Tested to work on IPv6 too.Denis Vlasenko2009-03-091-96/+97
| | | | | | | | | | | | | | | | | libbb: str2sockaddr shuld accept [IPv6] addr without port - wget 'ftp://[::1]/file' needs that to work. function old new delta bind_for_passive_mode - 129 +129 get_nport - 30 +30 ftpd_main 1731 1760 +29 str2sockaddr 412 431 +19 ------------------------------------------------------------------------------ (add/remove: 2/0 grow/shrink: 2/0 up/down: 207/0) Total: 207 bytes text data bss dec hex filename 808568 476 7864 816908 c770c busybox_old 808804 476 7864 817144 c77f8 busybox_unstripped
* ftp: reduce amount of realloc's done in cmdio_writeDenis Vlasenko2009-03-091-26/+20
| | | | | | | text data bss dec hex filename 808562 476 7864 816902 c7706 busybox_old 808568 476 7864 816908 c770c busybox_unstripped
* ftpd: code shrinkDenis Vlasenko2009-03-091-1/+1
|
* ftpd: code shrinkDenis Vlasenko2009-03-091-4/+4
|
* ftp: code shrinkDenis Vlasenko2009-03-091-132/+119
| | | | | | | text data bss dec hex filename 809078 476 7864 817418 c790a busybox_old 808590 476 7864 816930 c7722 busybox_unstripped
* ftpd: code shuffled a bit, added commentsDenis Vlasenko2009-03-091-7/+15
|
* ftpd: add commentDenis Vlasenko2009-03-091-1/+2
|
* ftpd: further code shrinkDenis Vlasenko2009-03-091-192/+185
| | | | | | | | | | | | | | | function old new delta port_pasv_cleanup - 50 +50 replace_char - 30 +30 ftp_write_str_common 102 104 +2 handle_dir_common 209 204 -5 ftpd_main 1990 1970 -20 port_cleanup 23 - -23 pasv_cleanup 28 - -28 handle_upload_common 320 273 -47 ------------------------------------------------------------------------------ (add/remove: 2/2 grow/shrink: 1/3 up/down: 82/-123) Total: -41 bytes
* *: move get_sock_lsa and xwrite_str to libbb, use where appropriateDenis Vlasenko2009-03-092-37/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | function old new delta get_sock_lsa - 72 +72 buffer_fill_and_print 179 196 +17 parse_expr 824 832 +8 read_base64 343 348 +5 nameval 202 206 +4 fbset_main 1694 1698 +4 expand 1849 1853 +4 udhcp_send_kernel_packet 249 252 +3 udhcp_get_option 223 222 -1 chat_main 1246 1245 -1 pack_gzip 1661 1659 -2 doset 299 297 -2 bb__parsespent 119 117 -2 test_main 260 257 -3 qgravechar 109 106 -3 tcpudpsvd_main 1834 1830 -4 sysctl_display_all 589 580 -9 xopen_xwrite_close 44 33 -11 prs 30 18 -12 find_main 418 406 -12 full_write2_str 25 12 -13 adduser_main 667 654 -13 evaltreenr 817 802 -15 evaltree 817 802 -15 tftpd_main 526 493 -33 ftpd_main 2050 1990 -60 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 7/18 up/down: 117/-211) Total: -94 bytes
* ftpd: code chrink, fixed some minor bugsDenis Vlasenko2009-03-086-378/+394
| | | | | | | | | | | | | | | | | | | | | | | | | ls: update comment *: openlog fixes (added LOG_PID, set LOG_DAEMON as appropriate) function old new delta xwrite_str - 26 +26 cmdio_write_ok - 15 +15 handle_cwd 40 45 +5 packed_usage 25668 25670 +2 cmdio_write_raw 7 9 +2 handle_upload_common 322 320 -2 udhcpd_main 1375 1372 -3 udhcpc_main 2362 2359 -3 port_cleanup 27 23 -4 handle_dir_common 221 209 -12 str_netfd_write 26 - -26 cmdio_get_cmd_and_arg 122 - -122 ftpd_main 2208 2050 -158 ------------------------------------------------------------------------------ text data bss dec hex filename 809933 476 7864 818273 c7c61 busybox_old 809199 476 7864 817539 c7983 busybox_unstripped
* adding forgotten new fileDenis Vlasenko2009-03-081-0/+1130
|
* ftpd: new applet by Adam TkacDenis Vlasenko2009-03-082-0/+14
| | | | | | | $ size ftpd.o text data bss dec hex filename 5703 0 0 5703 1647 ftpd.o
* networking/libiproute/*: code shrink by optimizing numeric conversionsDenis Vlasenko2009-03-059-140/+63
| | | | | | | | | | | | | | | | | | | | | | | | | and other misc stuff function old new delta print_tunnel 660 656 -4 format_host 5 - -5 get_unsigned 70 54 -16 get_u32 70 54 -16 do_iplink 1173 1151 -22 get_prefix 417 393 -24 print_rule 800 771 -29 print_addrinfo 1374 1342 -32 print_route 1745 1709 -36 iprule_modify 905 866 -39 iproute_modify 1105 1048 -57 get_integer 70 - -70 parse_args 1684 1440 -244 ------------------------------------------------------------------------------ (add/remove: 0/2 grow/shrink: 0/11 up/down: 0/-594) Total: -594 bytes text data bss dec hex filename 817378 476 7892 825746 c9992 busybox_old 816784 476 7892 825152 c9740 busybox_unstripped
* wget: --post-data support by Harald Kuthe (harald-tuxbox AT arcor.de)Denis Vlasenko2009-03-041-5/+61
| | | | | | | | | function old new delta wget_main 2467 2793 +326 static.wget_longopts 110 122 +12 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 2/0 up/down: 338/0) Total: 338 bytes
* ip: in "ip rule add from all table 1", "all" is taken as 0.0.0.0/32,Denis Vlasenko2009-03-032-18/+22
| | | | | | whereas "any" and "default" would be 0.0.0.0/0. They must be all 0.0.0.0/0. Closes bug 57.
* wget: fix --header handlingDenis Vlasenko2009-03-021-9/+15
|
* runsv: small optimizationDenis Vlasenko2009-02-261-1/+1
| | | | | | | | *: more paranoia around passing NULL to execl[e] function old new delta custom 240 221 -19
* - rephrase helptext for clarityBernhard Reutner-Fischer2009-02-241-1/+1
|
* - improve wordingBernhard Reutner-Fischer2009-02-241-1/+1
|
* - improve wordingBernhard Reutner-Fischer2009-02-141-1/+1
|
* httpd: tiny optimizationDenis Vlasenko2009-02-051-7/+6
|
* httpd:Denis Vlasenko2009-02-042-117/+56
| | | | | | | | | | | | | | | | | | | | | Kill config options by making them always on: FEATURE_HTTPD_RELOAD_CONFIG_SIGHUP FEATURE_HTTPD_CONFIG_WITH_MIME_TYPES This makes httpd.c remotely readable - it had ~125 #ifdefs, now it has ~100. The growth on a .config with all FEATURE_HTTPDs off is: function old new delta send_file_and_exit - 269 +269 parse_conf 683 763 +80 free_llist - 32 +32 httpd_main 427 454 +27 sighup_handler - 15 +15 handle_incoming_and_exit 1110 905 -205 ------------------------------------------------------------------------------ (add/remove: 3/0 grow/shrink: 2/1 up/down: 423/-205) Total: 218 bytes
* telnetd: do not advertise TELNET_LFLOW, we do not supportDenis Vlasenko2009-02-022-8/+184
| | | | | it properly.
* udhcpd: add code which rejects lease files with suspicious or old timestamp.Denis Vlasenko2009-02-023-18/+20
| | | | | *: s/time(0)/time(NULL)/g
* dhcpd,dumpleases: write and use 64-bit current time in lease file.Denis Vlasenko2009-02-012-18/+52
| | | | | | | | | | | | | | | without it, determination of remaining lease time is unreliable. Yes, it's costly in code size, but without it, dumpleases output is misleading! function old new delta read_leases 143 282 +139 dumpleases_main 447 572 +125 write_leases 193 233 +40 hton64 29 58 +29 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 4/0 up/down: 333/0) Total: 333 bytes
* brctl: fix compilation on 2.4.x kernelsDenis Vlasenko2009-01-311-0/+14
|
* traceroute: allow -w NUM as small as 1Denis Vlasenko2009-01-241-1/+1
|
* traceroute: rewrite. Do not emit raw IP packets, instead send UDP or ICMPDenis Vlasenko2009-01-241-559/+166
| | | | | | | | | | | | | | | | | packets and rely on the kernel to form IP headers, select source IP and interface. Doing it in traceroute wasn't working too good, and was bloating it. function old new delta freehostinfo 29 - -29 setsin 30 - -30 in_cksum 57 - -57 gethostinfo 165 - -165 ifaddrlist 364 - -364 traceroute_main 3713 2951 -762 ------------------------------------------------------------------------------ (add/remove: 0/5 grow/shrink: 0/1 up/down: 0/-1407) Total: -1407 bytes
* traceroute: preparatory trivial cleanupsDenis Vlasenko2009-01-241-124/+94
| | | | | | function old new delta traceroute_main 3932 3713 -219