summaryrefslogtreecommitdiff
path: root/networking/tftp.c
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Bugfix, wastn retrieving last block, patch by Jean-Christophe DuboisGlenn L McGrath2002-12-191-4/+5
|
* Forgot to rename fooGlenn L McGrath2002-12-091-1/+1
|
* Fix a debug message, from Bastian BlankGlenn L McGrath2002-12-091-3/+3
|
* This patch from Magnus Damm fixed a long standing problemEric Andersen2002-10-251-1/+1
| | | | with freeing memory.
* Fix for handling of "tftp -l -" from Jean Wolter <jw5@os.inf.tu-dresden.de>Eric Andersen2002-09-101-1/+1
|
* Patch from Ben Low <ben@titr.uow.edu.au> to allow tftp to workEric Andersen2002-04-151-11/+7
| | | | with stdin as well as stdout.
* Teach tftp to direct the fetched file to stdout when theEric Andersen2002-04-131-4/+11
| | | | | user specifies "-l -" -Erik
* Patch from Jeff Studer <jstuder@aquilagroup.com> to supply a defaults forEric Andersen2002-03-201-0/+7
| | | | | localfilename from remotefilename, and for remotefilename from localfilename when the other one is not supplied.
* Can't use RESERVE_CONFIG_BUFFER here since the allocationEric Andersen2001-11-101-1/+3
| | | | size varies meaning BUFFERS_GO_ON_STACK will fail
* Major rework of the directory structure and the entire build system.Eric Andersen2001-10-241-19/+19
| | | | -Erik
* Apply Magnus Damm's patch, adds tftp blocksize support, and some cleanups.Glenn L McGrath2001-10-051-51/+242
|
* Apply Glenn's tftp rewriteEric Andersen2001-08-201-137/+106
|
* Add xgethostbyname and herror_msg* functions.Matt Kraai2001-05-161-6/+1
|
* A number of cleanups. Now compiles with libc5, glibc, and uClibc. Fix a fewEric Andersen2001-04-051-1/+1
| | | | | | shadowed variables. Move (almost) all syscalls to libbb/syscalls.c, so I can handle them sanely and all at once. -Erik
* xstrdup tftp cleanup from Jeff GarzikEric Andersen2001-03-231-5/+4
|
* Applied patch from Vladimir Oleynik via Magnus Damm that removes newlines fromMark Whitley2001-03-061-12/+8
| | | | error_msg() calls and uses 'return EXIT_SUCCESS' instead of return 0.
* Added Magnus Damm's tftp applet to Busybox.Mark Whitley2001-03-021-0/+424