summaryrefslogtreecommitdiffstats
path: root/net/tftp.c
Commit message (Collapse)AuthorAgeFilesLines
* net: use static string in string_to_ipSascha Hauer2012-04-151-2/+1
| | | | | | Simplify usage of ip_to_string by using a static string. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net: tftp: do not retry endlesslyWolfram Sang2012-04-051-0/+10
| | | | | Signed-off-by: Wolfram Sang <w.sang@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net: tftp: check for error when retryingWolfram Sang2012-04-051-1/+3
| | | | | Signed-off-by: Wolfram Sang <w.sang@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* commands: remove struct command pointer from commandsSascha Hauer2012-02-271-1/+1
| | | | | | This is unused in all commands and thus can be removed. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net: add a context to the packet handlerSascha Hauer2011-04-121-2/+2
| | | | | | | This is not yet used, but with this the different network commands can get rid of their global data. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Cosmetic fixes, including format attributes for printf() and friends.Krzysztof Halasa2010-12-211-1/+1
| | | | | Signed-off-by: Krzysztof HaƂasa <khc@pm.waw.pl> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* doc: unify documentation for 'tftp'Robert Schwebel2010-11-011-28/+21
| | | | Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* tftp: update doxygen informationSascha Hauer2010-06-281-8/+13
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* tftp: Add push supportSascha Hauer2010-06-281-37/+151
| | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Tested-by: Baruch Siach <baruch@tkos.co.il>
* tftp: use generic progression barSascha Hauer2010-06-281-21/+13
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* tftp: remove unused variablesSascha Hauer2010-06-281-8/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* implement tftp using new network stackSascha Hauer2010-06-171-145/+126
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* tftp return valueJan Weitzel2010-04-141-2/+1
| | | | | | | | tftp returns transfered bytes on success and 1 in error case. Bad for scripting. Change to 0 on success Signed-off-by: Jan Weitzel <J.Weitzel@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* replace ET_DEBUG with pr_debugSascha Hauer2010-02-011-2/+0
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* remove typedef cmd_tbl_t and replace it with struct commandSascha Hauer2010-02-011-1/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Move tftp/nfs specific code to net/*Sascha Hauer2010-02-011-1/+71
| | | | | | | This adds a few bytes of binary space but is done to put the code where it belongs to. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* remove global variable BootFileSascha Hauer2009-10-191-2/+2
| | | | Signed-off-by: Sascha Hauer <sha@pengutronix.de>
* tftp: use debug macroSascha Hauer2009-10-191-6/+2
| | | | Signed-off-by: Sascha Hauer <sha@pengutronix.de>
* tftp: coding styleSascha Hauer2009-10-191-47/+32
| | | | Signed-off-by: Sascha Hauer <sha@pengutronix.de>
* tftp: reorder to get rid of static function declarationsSascha Hauer2009-10-191-15/+7
| | | | Signed-off-by: Sascha Hauer <sha@pengutronix.de>
* tftp: remove never reached state STATE_BAD_MAGICSascha Hauer2009-10-171-13/+1
| | | | Signed-off-by: Sascha Hauer <sha@pengutronix.de>
* tftp: remove never reached state STATE_TOO_LARGESascha Hauer2009-10-171-14/+2
| | | | Signed-off-by: Sascha Hauer <sha@pengutronix.de>
* tftp: remove volatile from variablesSascha Hauer2009-10-171-4/+4
| | | | Signed-off-by: Sascha Hauer <sha@pengutronix.de>
* remove unused codeSascha Hauer2009-10-171-11/+0
| | | | Signed-off-by: Sascha Hauer <sha@pengutronix.de>
* tftp: consolidate different puts to printfSascha Hauer2009-10-171-7/+6
| | | | Signed-off-by: Sascha Hauer <sha@pengutronix.de>
* tftp: remove unnecessary gateway informationSascha Hauer2009-10-171-11/+0
| | | | Signed-off-by: Sascha Hauer <sha@pengutronix.de>
* remove unused variable NetBootFileSizeSascha Hauer2009-10-171-5/+0
| | | | Signed-off-by: Sascha Hauer <sha@pengutronix.de>
* tftp: remove default filename. We always have a filename givenSascha Hauer2009-10-171-15/+1
| | | | Signed-off-by: Sascha Hauer <sha@pengutronix.de>
* net: cleanup header fileSascha Hauer2009-10-131-1/+0
| | | | | | move contents of bootp.h to .c file and remove it. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* tftp: do not call NetStartAgain()Sascha Hauer2009-10-131-13/+5
| | | | | | | | | When we are in the middle of transferring a file it does not make sense to restart the transfer because we may transfer directly to flash in which case we would have to erase the flash prior to attempting again. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* tftp.c: use sprintf instead of several strcpy functionsSascha Hauer2008-03-311-11/+2
|
* print_size() -> size_human_readable()Sascha Hauer2007-09-261-7/+5
| | | | return a pointer to a human readable string rather than printingit directly
* - putc is now putchar for better standard conformitySascha Hauer2007-09-211-3/+3
| | | | - make printf return int
* svn_rev_683Sascha Hauer2007-07-051-5/+0
| | | | more cleanups, fix compiler warnings
* svn_rev_440Sascha Hauer2007-07-051-1/+1
| | | | | what a silly bug of mine. Chances were good we generated a negative port number causing tftp to fail
* svn_rev_408Sascha Hauer2007-07-051-3/+12
| | | | store_block can fail
* svn_rev_270Sascha Hauer2007-07-051-2/+3
| | | | WIP FS support
* svn_rev_268Sascha Hauer2007-07-051-1/+1
| | | | WIP
* svn_rev_223Sascha Hauer2007-07-051-0/+1
| | | | add missing include
* svn_rev_211Sascha Hauer2007-07-051-3/+4
| | | | memcpy -> write
* svn_rev_108Sascha Hauer2007-07-051-32/+3
| | | | removed ifdefs, moved ping to own file, fix timeout handler
* svn_rev_035Sascha Hauer2007-07-051-1/+1
| | | | no modulo for 64bit
* svn_rev_033Sascha Hauer2007-07-051-1/+2
| | | | change to clocksource api
* Fix typo.Wolfgang Denk2006-08-141-1/+1
| | | | Patch by Andreas Engel, 28 Nov 2005
* Merge with /home/m8/git/u-bootWolfgang Denk2005-10-151-1/+1
|\
| * Added support for TQM834x boards.Marian Balakowicz2005-10-111-1/+1
| |
* | Cleanup for GCC-4.xWolfgang Denk2005-10-131-1/+1
|/
* Update for TFTP using a fixed UDP portWolfgang Denk2005-09-241-1/+4
| | | | | | Use the approved environment variable names. Added "tftpdstp" to allow ports other than 69 per Tolunay Orkun's recommendation. Patch by Jerry Van Baren, 12 Jan 2005
* Allow to force TFTP to use a fixed UDP portWolfgang Denk2005-09-241-0/+10
| | | | | (Add a configuration option CONFIG_TFTP_PORT and optional env variable tftpport) Patch by Jerry Van Baren, 10 Jan 2005
* Prepare U-Boot for gcc-4.xWolfgang Denk2005-08-261-8/+20
|