summaryrefslogtreecommitdiff
path: root/networking/tftp.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* whitespace fixesDenis Vlasenko2007-05-301-1/+1
|
* usage.c: remove reference to busybox.hDenis Vlasenko2007-05-261-1/+1
| | | | | *: s/include "busybox.h"/include "libbb.h"
* tftp: explain "block# 0" codepath; report our decision to bail out to serverDenis 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.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 ↵Bernhard Reutner-Fischer2007-04-121-6/+1
| | | | | | a bit. -916 byte
* tcpsvd: new appletDenis 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 bugDenis Vlasenko2007-02-081-1/+1
|
* tftp: fix IPv6 falloutDenis Vlasenko2007-02-071-19/+22
|
* add x to IPv6 functions which can dieDenis Vlasenko2007-02-041-1/+1
|
* suppress warnings about easch <applet>_main() havingDenis Vlasenko2007-02-031-0/+1
| | | | no preceding prototype
* fixing bugs revealed by randomconfig runsDenis Vlasenko2007-01-201-2/+6
|
* next part of ipv6-ization. dnsd code is "interesting"...Denis Vlasenko2007-01-121-26/+14
|
* next part of ipv6-ization is here: wget & httpdDenis Vlasenko2007-01-121-1/+3
|
* ipv6-ization efforts continue. Few bugs are found,Denis Vlasenko2007-01-111-148/+103
| | | | unknown number likely introduced...
* tftp: corrupted input packets were killing retransmits - fixedDenis Vlasenko2006-12-171-18/+22
|
* inline strcmp(s, "-") [actually macro-ize it for now - gcc is too stupid]Denis Vlasenko2006-12-161-1/+1
|
* httpd: slight reduction of #ifdef forestDenis Vlasenko2006-11-211-14/+14
| | | | | | few other applets: #ifdef CONFIG_ -> #if ENABLE_ traceroute: fix exposed bugs defconfig: update
* attempt to regularize atoi mess.Denis Vlasenko2006-10-081-2/+2
|
* eject: -T fixDenis Vlasenko2006-10-051-4/+2
|
* getopt_ulflags -> getopt32.Denis Vlasenko2006-10-031-3/+3
| | | | | | | | It is impossible to formulate sane ABI based on size of ulong because it can be 32-bit or 64-bit. Basically it means that you cannot portably use more that 32 option chars in one call anyway... Make it explicit.
* Remove bb_ prefixes from xfuncs.c (and a few other places), consolidateRob Landley2006-08-031-14/+2
| | | | | | | | | | things like xasprintf() into xfuncs.c, remove xprint_file_by_name() (it only had one user), clean up lots of #includes... General cleanup pass. What I've been doing for the last couple days. And it conflicts! I've removed httpd.c from this checkin due to somebody else touching that file. It builds for me. I have to catch a bus. (Now you know why I'm looking forward to Mercurial.)
* Cleaup read() and write() variants, plus a couple of new functions likeRob Landley2006-07-161-2/+2
| | | | xlseek and fdlength() for the new mkswap.
* Make this slightly more readable, and expose the hypocrasy of a comment thatRob Landley2006-06-181-5/+1
| | | | | says "our implementation makes it impossible to use blocksizes smaller than 22 octets" right above a check for blocksize < 8.
* - rename CONFIG_FEATURE_TFTP_DEBUG to CONFIG_DEBUG_TFTP so it's off in defconfigBernhard Reutner-Fischer2006-06-141-22/+19
| | | | | - expand the cmd_get/cmd_put macros - Jason Schoon writes: unlink only if non-stdio
* Don't break allbareconfig.Rob Landley2006-06-131-2/+0
|
* - revert incorrect select changeBernhard Reutner-Fischer2006-06-101-7/+5
|
* - fix two segfaults (reported by Horst Kronstorfer)Bernhard Reutner-Fischer2006-06-101-147/+139
| | | | | | | | | | - remove dangling file if get fails (spotted and fixed by Jason Schoon) - shrink it (Bernhard Fischer) Thanks, all! text data bss dec hex filename 2684 0 0 2684 a7c networking/tftp.o.orig 2748 0 0 2748 abc networking/tftp.o.allfixed 2666 0 0 2666 a6a networking/tftp.o.+shrink
* - use bb_xbindBernhard Reutner-Fischer2006-06-101-1/+1
| | | | Thanks Erik Hovland
* - use bb_msg_{read,write}_error where appropriate.Bernhard Reutner-Fischer2006-06-031-2/+2
| | | | | | text data bss dec hex filename 825015 9100 645216 1479331 1692a3 busybox.old 824919 9100 645216 1479235 169243 busybox
* Consolidate #include <sys/time.h> so libbb.h does it.Rob Landley2006-05-271-1/+0
|
* - patch from Denis Vlasenko to add and use bb_xsocket() and to useBernhard Reutner-Fischer2006-04-121-33/+21
| | | | | bb_xopen some more while at it. Also use shorter boilerplate while at it.
* - this applet should peruse USE_FEATURE_TFTP_...Bernhard Reutner-Fischer2006-04-051-1/+1
|
* just whitespaceTim Riker2006-01-251-23/+23
|
* Fix -g and -p options. Patch from Traceman. (I don't know who that is,Rob Landley2005-12-151-3/+2
| | | | it's the darn bug generator again.)
* more const, use bb_getopt_ulflags, insert XXX for show place of problems"Vladimir N. Oleynik"2005-10-171-36/+49
|
* applying fix for:Paul Fox2005-07-201-1/+6
| | | | | 0000271: [PATCH] tftp -g fails if a TFTP_ACK is lost
* Thus spake Brenda J. Butler:Rob Landley2005-06-071-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We were seeing some timeouts when getting files with the busybox tftp client. With tcpdump, we saw that the tftp client was receiving blocks and ack'ing them, but the server was failing to receive the occasional ack. When that happened, the server would send the last block over again, but the tftp client was expecting the next block. This patch allows the client to recover from this situation (it sends an ack for the repeat block but does not write it to the local file). I hope it meets your approval, please don't hesitate to send me comments for improvement. The patch is against "head" in svn, I tested it on an older version of busybox in our environment. It applied cleanly to the older version. Credit for this goes to my co-worker John McCarthy for finding it and me for fixing it (assuming it works for everyone else too). cheerio, bjb
* Patch from Bernhard Fischer to make a bunch of symbols staticEric Andersen2005-04-161-2/+2
| | | | which were otherwise cluttering the global namespace.
* Patch from Felipe Kellermann, remove some unnecessary dups, i declared a few ↵Glenn L McGrath2004-09-141-4/+4
| | | | extra const's also.
* Robin Farine writes:Eric Andersen2004-06-221-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | Hi, Package: BusyBox Version: 1.0.0-pre10 When an incomplete read or write from/to a local file occurs (i.e. not an EOF condition), the tftp client prematurely exits. This problem can be reproduced by slowly piping data to the tftp client like this: (for v in 1 2 3; do echo $v; sleep 1; done) | \ tftp -p -l - -r output.txt <host> The output file on the TFTP server will contain "1". The attached patch provides a possible solution to this problem. I can reproduce this on ARM sa1110 and ARM xscale boards, both running Linux-2.6.4 & glibc-2.3.2. Thanks for the wonderful program! Robin
* s/fileno\(stdin\)/STDIN_FILENO/gEric Andersen2004-03-271-1/+1
| | | | s/fileno\(stdout\)/STDOUT_FILENO/g
* Remove trailing whitespace. Update copyright to include 2004.Eric Andersen2004-03-151-18/+18
|
* Fix debugging output, patch by Hideki IWAMOTOGlenn L McGrath2004-03-051-1/+1
|
* Quick fix for tftp truncation bugGlenn L McGrath2004-02-261-1/+1
|
* Patch from Hideki IWAMOTO, output debugging messages to stderrGlenn L McGrath2004-02-221-6/+6
|
* Ptch by Hideki IWAMOTO, fix a bug preventing tftp from getting orGlenn L McGrath2004-02-221-2/+2
| | | | putting more than 0xffff blocks.
* Modify bb_lookup_port to allow the protocol to be specified, allowingGlenn L McGrath2004-01-171-8/+5
| | | | /etc/services support for inetd, netcat and tftp.
* Christian Meyer provided this patch to fix more bugs with the tftp clientEric Andersen2003-07-301-3/+2
|
* Patch from Christian Meyer:Eric Andersen2003-07-261-0/+1
| | | | | The client gives up way too soon because timeout is set to 0 ... There's a solution for that problem.
* Major coreutils update.Manuel Novoa III2003-03-191-21/+21
|