aboutsummaryrefslogtreecommitdiff
path: root/networking/tftp.c
Commit message (Collapse)AuthorAgeFilesLines
...
* tftp: add optiona support for progress barGravatar Magnus Damm2009-11-081-16/+75
| | | | | | | | | | | | | | function old new delta tftp_protocol 1662 1834 +172 progress_meter 212 365 +153 tftp_progress_init - 14 +14 tftp_main 276 281 +5 tftpd_main 513 500 -13 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 3/1 up/down: 344/-13) Total: 331 bytes Signed-off-by: Magnus Damm <magnus.damm@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* tftp: extend tsize support a littleGravatar Magnus Damm2009-11-081-39/+57
| | | | | | | | | | | | function old new delta tftp_protocol 1624 1662 +38 tftpd_main 495 513 +18 tftp_main 274 276 +2 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 3/0 up/down: 58/0) Total: 58 bytes Signed-off-by: Magnus Damm <magnus.damm@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* fix up potential printf's with unsafe format stringsGravatar Denys Vlasenko2009-10-241-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* documentation and typo fixes. By Dan Fandrich (dan AT coneharvesters.com)Gravatar Denys Vlasenko2009-09-061-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* tftp: add comment, no code changesGravatar Denys Vlasenko2009-07-251-5/+30
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* tftp[d]: fix block# handling on upload with non-default blocksizeGravatar Atsushi Nemoto2009-07-241-39/+42
| | | | | | | | function old new delta tftp_protocol 1590 1618 +28 Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* tftp: do not risk invoking Sorcerer's Apprentice syndromeGravatar Denys Vlasenko2009-05-101-0/+3
| | | | | | examples/udhcp/simple.script: fix incorrect test for $1 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: mass renaming of USE_XXXX to IF_XXXXGravatar Denis Vlasenko2009-04-211-26/+26
| | | | | | and SKIP_XXXX to IF_NOT_XXXX - the second one was especially badly named. It was not skipping anything!
* tftp: when we infer local name from remote (-r [/]path/path/file),Gravatar Denis Vlasenko2009-03-251-3/+8
| | | | | strip path. This mimics wget and is generally more intuitive.
* *: move get_sock_lsa and xwrite_str to libbb, use where appropriateGravatar Denis Vlasenko2009-03-091-15/+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
* libbb: introduce and use xgetpwnam. ~ -150 bytes.Gravatar Denis Vlasenko2008-12-031-3/+1
|
* build system: tidying up CONFIG_xxx names (suggested by Rob)Gravatar Denis Vlasenko2008-11-061-4/+4
|
* tftpd: show help if stdin is not a socketGravatar Denis Vlasenko2008-11-011-2/+9
|
* - first pass to unify/cleanup uid handling (-236b)Gravatar Bernhard Reutner-Fischer2008-07-211-1/+1
| | | | This needs further love, alot of love.. Tito?
* *: rename ATTRIBUTE_XXX to just XXX.Gravatar Denis Vlasenko2008-07-051-2/+2
|
* whitespace fixes. no code changesGravatar Denis Vlasenko2008-06-251-3/+1
|
* tftp: help compiler a bitGravatar Denis Vlasenko2008-06-161-1/+8
|
* tftpd: PXE server said to need to support "tsize" optionGravatar Denis Vlasenko2008-06-161-39/+55
| | | | | | | | | | | | | | | (by Pascal Bellard <pascal.bellard AT ads-lu.com>). Conditional on blocksize option && tftpd support. function old new delta tftp_protocol 1488 1670 +182 tftp_get_option - 102 +102 tftpd_main 494 538 +44 tftp_main 252 254 +2 tftp_get_blksize 97 - -97 ------------------------------------------------------------------------------ (add/remove: 1/1 grow/shrink: 3/0 up/down: 330/-97) Total: 233 bytes
* more -Wall warning fixes. -Wall is enabled now.Gravatar Denis Vlasenko2008-05-181-6/+6
|
* *: fix build problems found with randomconfigGravatar Denis Vlasenko2008-03-211-33/+40
|
* tftpd: small trivial shrinkGravatar Denis Vlasenko2008-03-191-5/+2
| | | | | tftpd_main 502 488 -14
* tftpd: fix download: we must change user AFTER bindGravatar Denis Vlasenko2008-03-191-37/+42
| | | | | tftp_protocol 1466 1468 +2
* tftpd: options -c (allow _new_ files to be uploaded) and -u USERGravatar Denis Vlasenko2008-03-191-63/+84
| | | | | | | | | | | | | | function old new delta tftp_protocol 1316 1466 +150 packed_usage 23774 23798 +24 tftpd_main 509 502 -7 tftp_main 311 252 -59 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 2/2 up/down: 174/-66) Total: 108 bytes text data bss dec hex filename 797700 641 7380 805721 c4b59 busybox_old 797833 641 7380 805854 c4bde busybox_unstripped
* tftp(d): a bit more verbose error reportingGravatar Denis Vlasenko2008-03-191-10/+15
|
* tftpd: make it emit error packetsGravatar Denis Vlasenko2008-03-191-114/+178
| | | | | | | | | | telnetd: use login always, not "sometimes login, sometimes shell" text data bss dec hex filename 797612 641 7380 805633 c4b01 busybox_old 797695 641 7380 805716 c4b54 busybox_unstripped
* tftpd: make open() check r/w permissions instead of doing it ourself.Gravatar Denis Vlasenko2008-03-181-21/+27
| | | | | | Add -r "prohibit upload" opt for those lazy people who run tftpd as root. -40 bytes.
* tftpd: fix bugs spotted by VladimirGravatar Denis Vlasenko2008-03-181-3/+12
|
* tftpd: new applet (mostly using existing code for tftp)Gravatar Denis Vlasenko2008-03-171-92/+242
| | | | | | | | | | | | | | | | | | | | function old new delta tftp_protocol - 1173 +1173 tftpd_main - 500 +500 tftp_option_get - 102 +102 packed_usage 23650 23662 +12 applet_names 1809 1815 +6 applet_main 1100 1104 +4 applet_nameofs 550 552 +2 tftp_main 302 301 -1 get_nport 32 - -32 tftp 1172 - -1172 ------------------------------------------------------------------------------ (add/remove: 3/2 grow/shrink: 4/1 up/down: 1799/-1205) Total: 594 bytes text data bss dec hex filename 796479 662 7420 804561 c46d1 busybox_old 797153 662 7420 805235 c4973 busybox_unstripped
* *: shrink: use Vladimir's "o+" specifier instead of xatou(opt_param)Gravatar Denis Vlasenko2008-03-171-11/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | function old new delta getopt32 1370 1385 +15 sulogin_main 490 494 +4 realpath_main 84 86 +2 sleep_main 76 77 +1 mt_main 256 257 +1 printenv_main 75 74 -1 fdformat_main 546 545 -1 usleep_main 44 42 -2 setlogcons_main 77 75 -2 ed_main 2654 2649 -5 deallocvt_main 69 64 -5 addgroup_main 373 368 -5 mkfs_minix_main 2989 2982 -7 tail_main 1221 1213 -8 sv_main 1254 1241 -13 du_main 348 328 -20 tftp_main 325 302 -23 split_main 581 558 -23 nc_main 1000 977 -23 diff_main 891 868 -23 arping_main 1797 1770 -27 ls_main 893 847 -46 od_main 2797 2750 -47 readprofile_main 1944 1895 -49 tcpudpsvd_main 1973 1922 -51 udhcpc_main 2590 2513 -77 grep_main 824 722 -102 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 5/22 up/down: 23/-560) Total: -537 bytes text data bss dec hex filename 796973 658 7428 805059 c48c3 busybox_old 796479 662 7420 804561 c46d1 busybox_unstripped
* *: add -Wunused-parameter; fix resulting breakageGravatar Denis Vlasenko2008-03-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | function old new delta procps_scan 1265 1298 +33 aliascmd 278 283 +5 parse_file_cmd 116 120 +4 dname_enc 373 377 +4 setcmd 90 93 +3 execcmd 57 60 +3 count_lines 72 74 +2 process_command_subs 340 339 -1 test_main 409 407 -2 mknod_main 179 177 -2 handle_incoming_and_exit 2653 2651 -2 argstr 1312 1310 -2 shiftcmd 131 128 -3 exitcmd 46 43 -3 dotcmd 297 294 -3 breakcmd 86 83 -3 evalpipe 353 349 -4 evalcommand 1180 1176 -4 evalcmd 109 105 -4 send_tree 374 369 -5 mkfifo_main 82 77 -5 evalsubshell 152 147 -5 typecmd 75 69 -6 letcmd 61 55 -6 add_cmd 1190 1183 -7 main 891 883 -8 ash_main 1415 1407 -8 parse_stream 1377 1367 -10 alloc_procps_scan 55 - -55 ------------------------------------------------------------------------------ (add/remove: 0/1 grow/shrink: 7/21 up/down: 54/-148) Total: -94 bytes text data bss dec hex filename 797195 658 7428 805281 c49a1 busybox_old 797101 658 7428 805187 c4943 busybox_unstripped
* inetd: make it NOMMU-capable and IPv6-friendly. Lots of renamesGravatar Denis Vlasenko2008-03-121-1/+1
| | | | | | | | | | of variable/function names Total: -2474 bytes text data bss dec hex filename 802215 661 7452 810328 c5d58 busybox_old 800120 661 7428 808209 c5511 busybox_unstripped
* - be C99 friendly. Anonymous unions are a GNU extension. This change isGravatar Bernhard Reutner-Fischer2008-01-291-8/+8
| | | | | size-neutral WRT -std=gnu99 and fixes several compilation errors for strict C99 mode.
* add -fvisibility=hidden to CC flags, mark XXX_main functionsGravatar Denis Vlasenko2007-10-111-1/+1
| | | | | EXTERNALLY_VISIBLE. 5% size reduction of libbusybox.so
* introduce safe_poll (fixes a problem in top)Gravatar Denis Vlasenko2007-09-271-2/+2
| | | | | | | | | | | | | | | | | | | | function old new delta safe_poll - 77 +77 svlogd_main 1470 1466 -4 zcip_main 1530 1524 -6 forkexec 1345 1338 -7 decode_format_string 795 788 -7 collect_blk 474 467 -7 buffer_pread 540 532 -8 tftp 1182 1172 -10 microcom_main 763 749 -14 arpping 441 424 -17 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 0/9 up/down: 77/-80) Total: -3 bytes text data bss dec hex filename 770162 1034 10404 781600 bed20 busybox_old 770158 1034 10404 781596 bed1c busybox_unstripped
* *: replace select-for-one descriptor with poll, it's smaller.Gravatar Denis Vlasenko2007-09-071-18/+15
| | | | | | | | | | | | | | | | | $ ./.cmk bloatcheck function old new delta readit 406 364 -42 syslogd_main 1249 1206 -43 traceroute_main 4115 4060 -55 mysleep 112 45 -67 arpping 579 441 -138 tftp 1575 1182 -393 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/6 up/down: 0/-738) Total: -738 bytes text data bss dec hex filename 770580 1051 10764 782395 bf03b busybox_old 769820 1051 10764 781635 bed43 busybox_unstripped
* fix infinite retry bug. also, reduce per-packet receive timeoutGravatar Paul Fox2007-09-061-11/+20
| | | | | | to something more reasonable than 5 seconds, and add simple exponential backoff to compensate. improves performance on marginal networks.
* don't pass argc in getopt32, it's superfluousGravatar Denis Vlasenko2007-08-181-1/+1
| | | | | | | | (add/remove: 0/0 grow/shrink: 12/131 up/down: 91/-727) Total: -636 bytes text data bss dec hex filename 773469 1058 11092 785619 bfcd3 busybox_old 772644 1058 11092 784794 bf99a busybox_unstripped
* introduce and use xdup2(int, int)Gravatar Denis Vlasenko2007-08-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | stop checking whether setsockopt_reuseaddr(int fd) was successful (it always is) remove second parameter (sockllen) from xmalloc_sockaddr2xxxxx functions sockaddr2str 142 156 +14 collect_blk 467 474 +7 xdup2 28 33 +5 singlemount 4456 4454 -2 print_host 214 212 -2 nslookup_main 139 137 -2 ftpgetput_main 414 412 -2 udhcpd_main 1258 1255 -3 udhcpc_main 2405 2402 -3 traceroute_main 4125 4122 -3 nc_main 1072 1069 -3 buffer_fill_and_print 76 73 -3 xmalloc_sockaddr2hostonly_noport 18 14 -4 xmalloc_sockaddr2host_noport 18 14 -4 xmalloc_sockaddr2host 15 11 -4 xmalloc_sockaddr2dotted_noport 18 14 -4 xmalloc_sockaddr2dotted 18 14 -4 wget_main 2618 2614 -4 ping_main 393 389 -4 ip_port_str 120 115 -5 dhcprelay_main 1146 1141 -5 dnsd_main 1531 1525 -6 passwd_main 1110 1102 -8 udhcp_kernel_packet 206 197 -9 udhcp_listen_socket 154 144 -10 getty_main 2576 2566 -10 setup 655 640 -15 xmove_fd 51 34 -17 dolisten 759 742 -17 tcpudpsvd_main 1866 1836 -30 startservice 339 299 -40
* trylink: produce even more info about final link stageGravatar Denis Vlasenko2007-08-121-2/+2
| | | | | | | | | trylink: explain how to modify link and drastically decrease amount of padding (unfortunately, needs hand editing ATM). *: add ALIGN1 / ALIGN2 to global strings and arrays of bytes and shorts size saving: 0.5k
* Consolidate ARRAY_SIZE macro; remove one unneeded global var (walter harms ↵Gravatar Denis Vlasenko2007-06-251-2/+2
| | | | <wharms@bfs.de>)
* whitespace fixesGravatar Denis Vlasenko2007-05-301-1/+1
|
* usage.c: remove reference to busybox.hGravatar Denis Vlasenko2007-05-261-1/+1
| | | | | *: s/include "busybox.h"/include "libbb.h"
* tftp: explain "block# 0" codepath; report our decision to bail out to serverGravatar Denis Vlasenko2007-05-091-73/+70
| | | | | if blocksize option doesn't look good (it was a FIXME. +33 bytes code); make code more readable.
* tftp: code diet, and I think retransmits were broken.Gravatar Denis Vlasenko2007-05-081-209/+159
| | | | | | | | | | | | function old new delta static.errcode_str - 32 +32 tftp_main 359 345 -14 tftp_bb_error_msg 32 - -32 .rodata 130931 130899 -32 tftp 1720 1558 -162 ------------------------------------------------------------------------------ (add/remove: 1/1 grow/shrink: 0/3 up/down: 32/-240) Total: -208 bytes
* - add xsendto and use where appropriate; shrink iplink; sanitize libiproute ↵Gravatar Bernhard Reutner-Fischer2007-04-121-6/+1
| | | | | | a bit. -916 byte
* tcpsvd: new appletGravatar Denis Vlasenko2007-04-011-1/+1
| | | | | | | | | | It's a GPL-ed 'clone' of Dan Bernstein's tcpserver. Author: Gerrit Pape <pape@smarden.org> http://smarden.sunsite.dk/ipsvd/ size tcpsvd.o text data bss dec hex filename 2571 4 16 2591 a1f tcpsvd.o
* tftp: fix my bugGravatar Denis Vlasenko2007-02-081-1/+1
|
* tftp: fix IPv6 falloutGravatar Denis Vlasenko2007-02-071-19/+22
|
* add x to IPv6 functions which can dieGravatar Denis Vlasenko2007-02-041-1/+1
|
* suppress warnings about easch <applet>_main() havingGravatar Denis Vlasenko2007-02-031-0/+1
| | | | no preceding prototype