- 07 12月, 2011 1 次提交
-
-
由 Matthias Weisser 提交于
When building u-boot as 64 bit application (e.g. sandbox) ulong might be 64 bits in size. This breaks network code as IPaddr_t is 64 bytes in size then and an IPv4 address is 32 bits in size. This patch makes sure that IPaddr_t is always 32 bits in size. Also some warnings introduced by this patch are fixed. Signed-off-by: NMatthias Weisser <weisserm@arcor.de> Acked-by: NMike Frysinger <vapier@gentoo.org>
-
- 28 10月, 2011 3 次提交
-
-
由 Simon Glass 提交于
If CONFIG_CMD_TFTPPUT is not enabled, we want minimal code size impact on the tftp code. This introduces a few more #ifdefs. Signed-off-by: NSimon Glass <sjg@chromium.org>
-
由 Simon Glass 提交于
This should be a static function so it can be inlined. Signed-off-by: NSimon Glass <sjg@chromium.org> Acked-by: NMike Frysinger <vapier@gentoo.org>
-
由 Simon Glass 提交于
This commit reduces code size a little by making the ICMP handler only available to tftpput. This is reasonable since it is the only user at present (ping just uses the normal handler). Signed-off-by: NSimon Glass <sjg@chromium.org>
-
- 27 10月, 2011 4 次提交
-
-
由 Simon Glass 提交于
This adds logic to tftp.c to implement the tftp 'put' command, and updates the README. Signed-off-by: NSimon Glass <sjg@chromium.org>
-
由 Simon Glass 提交于
TftpStart should support starting either a get or a put. Signed-off-by: NSimon Glass <sjg@chromium.org>
-
由 Simon Glass 提交于
This code is required for tftpput, so move it into separate functions. Signed-off-by: NSimon Glass <sjg@chromium.org>
-
由 Simon Glass 提交于
We want to show block markers on completion of get and put, so move this common code into separate functions. Signed-off-by: NSimon Glass <sjg@chromium.org>
-
- 06 10月, 2011 1 次提交
-
-
由 Mike Frysinger 提交于
This is long over due. All but two net drivers have been converted, but those have now been dropped. The only thing left to do is actually delete all references to NET_MULTI and code that is compiled when that is not defined. So here we scrub the core code. Signed-off-by: NMike Frysinger <vapier@gentoo.org>
-
- 20 5月, 2011 12 次提交
-
-
由 Luca Ceresoli 提交于
Signed-off-by: NLuca Ceresoli <luca.ceresoli@comelit.it> Cc: Wolfgang Denk <wd@denx.de> Acked-by: NDetlev Zundel <dzu@denx.de>
-
由 Luca Ceresoli 提交于
Signed-off-by: NLuca Ceresoli <luca.ceresoli@comelit.it> Cc: Wolfgang Denk <wd@denx.de> Acked-by: NDetlev Zundel <dzu@denx.de>
-
由 Luca Ceresoli 提交于
With the upcoming TFTP server implementation, requests can be either outgoing or incoming, so avoid ambiguities. Signed-off-by: NLuca Ceresoli <luca.ceresoli@comelit.it> Cc: Wolfgang Denk <wd@denx.de> Acked-by: NDetlev Zundel <dzu@denx.de>
-
由 Luca Ceresoli 提交于
With the upcoming TFTP server implementation, the remote node can be either a client or a server, so avoid ambiguities. Signed-off-by: NLuca Ceresoli <luca.ceresoli@comelit.it> Cc: Wolfgang Denk <wd@denx.de> Acked-by: NDetlev Zundel <dzu@denx.de>
-
由 Luca Ceresoli 提交于
This removes the following checkpatch issue: - ERROR: do not initialise statics to 0 or NULL Signed-off-by: NLuca Ceresoli <luca.ceresoli@comelit.it> Cc: Wolfgang Denk <wd@denx.de>
-
由 Luca Ceresoli 提交于
This removes the following checkpatch issue: - WARNING: suspect code indent for conditional statements Signed-off-by: NLuca Ceresoli <luca.ceresoli@comelit.it> Cc: Wolfgang Denk <wd@denx.de>
-
由 Luca Ceresoli 提交于
This removes the following checkpatch issue: - ERROR: trailing statements should be on next line Signed-off-by: NLuca Ceresoli <luca.ceresoli@comelit.it> Cc: Wolfgang Denk <wd@denx.de>
-
由 Luca Ceresoli 提交于
This removes the following checkpatch issues: - WARNING: braces {} are not necessary for single statement blocks - WARNING: braces {} are not necessary for any arm of this statement Signed-off-by: NLuca Ceresoli <luca.ceresoli@comelit.it> Cc: Wolfgang Denk <wd@denx.de>
-
由 Luca Ceresoli 提交于
This removes the following checkpatch issue: - ERROR: do not use assignment in if condition. There is one such error left: ERROR: do not use assignment in if condition #239: FILE: tftp.c:239: + if (!ProhibitMcast + && (Bitmap = malloc(Mapsize)) + && eth_get_dev()->mcast) { which would require an additional nested if to be fixed, resulting in longer and less readable code. Signed-off-by: NLuca Ceresoli <luca.ceresoli@comelit.it> Cc: Wolfgang Denk <wd@denx.de>
-
由 Luca Ceresoli 提交于
This removes the following checkpatch issues: - ERROR: "foo * bar" should be "foo *bar" - ERROR: "(foo*)" should be "(foo *)" Signed-off-by: NLuca Ceresoli <luca.ceresoli@comelit.it> Cc: Wolfgang Denk <wd@denx.de>
-
由 Luca Ceresoli 提交于
This removes the following checkpatch issues: - ERROR: space prohibited before that close parenthesis ')' - ERROR: space required after that ';' (ctx:BxV) - ERROR: space required after that ',' (ctx:VxV) - ERROR: space required after that ';' (ctx:VxV) - ERROR: spaces required around that '<<=' (ctx:VxV) - ERROR: spaces required around that '<' (ctx:VxV) - ERROR: spaces required around that '=' (ctx:VxV) - ERROR: spaces required around that '+=' (ctx:VxV) - ERROR: spaces required around that '=' (ctx:VxW) - WARNING: please, no spaces at the start of a line - WARNING: space prohibited between function name and open parenthesis '(' Signed-off-by: NLuca Ceresoli <luca.ceresoli@comelit.it> Cc: Wolfgang Denk <wd@denx.de>
-
由 Luca Ceresoli 提交于
Signed-off-by: NLuca Ceresoli <luca.ceresoli@comelit.it> Cc: Wolfgang Denk <wd@denx.de>
-
- 13 5月, 2011 1 次提交
-
-
由 Luca Ceresoli 提交于
This is needed for the upcoming TFTP server implementation. This also simplifies PingHandler() and fixes rxhand_f documentation. Signed-off-by: NLuca Ceresoli <luca.ceresoli@comelit.it> Cc: Wolfgang Denk <wd@denx.de> Acked-by: NDetlev Zundel <dzu@denx.de>
-
- 22 3月, 2010 1 次提交
-
-
由 Wolfgang Denk 提交于
So far, TFTP negotiated a fixed retransmission timeout of 5 seconds. In some cases (busy networks, slow TFTP servers) this caused very slow transfers. A new environment variable "tftptimeout" allows to set this timeout. Lowering this value may make downloads succeed faster in networks with high packet loss rates or with unreliable TFTP servers. Signed-off-by: NWolfgang Denk <wd@denx.de> Cc: Ben Warren <biggerbadderben@gmail.com> Signed-off-by: NBen Warren <biggerbadderben@gmail.com>
-
- 14 12月, 2009 2 次提交
-
-
由 Remy Bohmer 提交于
Signed-off-by: NRemy Bohmer <linux@bohmer.net> Signed-off-by: NBen Warren <biggerbadderben@gmail.com>
-
由 Mike Frysinger 提交于
Signed-off-by: NMike Frysinger <vapier@gentoo.org> Signed-off-by: NBen Warren <biggerbadderben@gmail.com>
-
- 26 8月, 2009 2 次提交
-
-
由 Robin Getz 提交于
Optionally add RFC 2349 "Transfer Size Option", so we can minimize the time spent sending data over the UART (now print a single line during a tftp transfer). - If turned on (CONFIG_TFTP_TSIZE), U-Boot asks for the size of the file. - if receives the file size, a single line (50 chars) are printed. one hash mark == 2% of the file downloaded. - if it doesn't receive the file size (the server doesn't support RFC 2349, prints standard hash marks (one mark for each UDP frame). Signed-off-by: NRobin Getz <rgetz@blackfin.uclinux.org> Signed-off-by: NBen Warren <biggerbadderben@gmail.com>
-
由 Alessandro Rubini 提交于
Increasing the block size is useful if CONFIG_IP_DEFRAG is used. Howerver, the last fragments in a burst may overflow the receiving ethernet, so the default is left at 1468, with thre new CONFIG_TFTP_BLOCKSIZE for config files. Further, "tftpblocksize" can be set in the environment. Signed-off-by: NAlessandro Rubini <rubini@gnudd.com> Signed-off-by: NBen Warren <biggerbadderben@gmail.com>
-
- 10 8月, 2009 1 次提交
-
-
由 Wolfgang Denk 提交于
tftp.c:294: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness This was only visible for the utx8245 board which seems to have DEBUG enabled. Signed-off-by: NWolfgang Denk <wd@denx.de>
-
- 08 8月, 2009 1 次提交
-
-
由 Robin Getz 提交于
Minor ./net cleanups - no functional changes - change #ifdef DEBUG printf(); #endif to just debug() - changed __FUNCTION__ to __func__ - got rid of extra whitespace between function and opening brace - removed unnecessary braces on if statements gcc dead code elimination should make this functionally/size equivalent when DEBUG is not defined. (confirmed on Blackfin, with gcc 4.3.3). Signed-off-by: NRobin Getz <rgetz@blackfin.uclinux.org> Signed-off-by: NBen Warren <biggerbadderben@gmail.com>
-
- 21 3月, 2009 1 次提交
-
-
由 Mike Frysinger 提交于
Now that our printf functions support the %pI4 modifier like the kernel, let's drop the inflexible print_IPaddr() function and covert over to the %pI4 modifier. Signed-off-by: NMike Frysinger <vapier@gentoo.org> CC: Ben Warren <biggerbadderben@gmail.com>
-
- 05 12月, 2008 1 次提交
-
-
由 Peter Tyser 提交于
The TftpStart() function modifies the 'BootFile' string when 'BootFile' contains both an IP address and filename (eg 1.2.3.4:/path/file). This causes subsequent calls to TftpStart to incorrectly parse the TFTP filename and server IP address to use. For example: => tftp 0x100000 10.52.0.62:/home/ptyser/non_existant Speed: 100, half duplex Using eTSEC1 device TFTP from server 10.52.0.62; our IP address is 10.52.253.79 ^^^^^^^^^^ CORRECT Filename '/home/ptyser/non_existant'. ^^^^^^^^^^^^^^^^^^^^^^^^^ CORRECT Load address: 0x100000 Loading: * TFTP error: 'File not found' (1) Starting again eTSEC2: No link. Speed: 100, half duplex Using eTSEC1 device TFTP from server 10.52.0.33; our IP address is 10.52.253.79 ^^^^^^^^^^ WRONG Filename '10.52.0.62'. ^^^^^^^^^^ WRONG Load address: 0x100000 Loading: * TFTP error: 'File not found' (1) Starting again TftpStart() was modified to not modify the 'BootFile' string. Signed-off-by: NPeter Tyser <ptyser@xes-inc.com> Signed-off-by: NBen Warren <biggerbadderben@gmail.com>
-
- 19 10月, 2008 3 次提交
-
-
Signed-off-by: NJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
-
由 Bartlomiej Sieka 提交于
There are two aspects of a TFTP transfer involving timeouts: 1. timeout waiting for initial server reply after sending RRQ 2. timeouts while transferring actual data from the server Since the upcoming auto-update feature attempts a TFTP download during each boot, it is undesirable to have a long delay when the TFTP server is not available. Thus, this commit makes the server timeout (1.) configurable by two global variables: TftpRRQTimeoutMSecs TftpRRQTimeoutCountMax TftpRRQTimeoutMSecs overrides default timeout when trying to connect to a TFTP server, TftpRRQTimeoutCountMax overrides default number of connection retries. The total delay when trying to download a file from a non-existing TFTP server is TftpRRQTimeoutMSecs x TftpRRQTimeoutCountMax milliseconds. Timeouts during file transfers (2.) are unaffected. Signed-off-by: NRafal Czubak <rcz@semihalf.com> Signed-off-by: NBartlomiej Sieka <tur@semihalf.com> Signed-off-by: NBen Warren <biggerbadderben@gmail.com>
-
由 Bartlomiej Sieka 提交于
Enforce millisecond semantics of the first argument to NetSetTimeout() -- the change is transparent for well-behaving boards (CFG_HZ == 1000 and get_timer() countiing in milliseconds). Rationale for this patch is to enable millisecond granularity for network-related timeouts, which is needed for the upcoming automatic software update feature. Summary of changes: - do not scale the first argument to NetSetTimeout() by CFG_HZ - change timeout values used in the networking code to milliseconds Signed-off-by: NRafal Czubak <rcz@semihalf.com> Signed-off-by: NBartlomiej Sieka <tur@semihalf.com> Signed-off-by: NBen Warren <biggerbadderben@gmail.com>
-
- 03 9月, 2008 1 次提交
-
-
由 Jochen Friedrich 提交于
If a board has a variable number of flash banks, there are empty entries in flash_info[] and CFG_DIRECT_FLASH_TFTP is set, tftp boot fails with "Outside available Flash". This patch skips flash banks with unknown flash ids. Signed-off-by: NJochen Friedrich <jochen@scram.de> Signed-off-by: NBen Warren <biggerbadderben@gmail.com>
-
- 10 7月, 2008 1 次提交
-
-
由 Andrew Klossner 提交于
The compiler will help find mismatches between printf formats and arguments if you let it. This patch adds the necessary attributes to declarations in include/common.h, then begins to correct the resulting compiler warnings. Some of these were bugs, e.g., "$d" instead of "%d" and incorrect arguments. Others were just annoying, like int-long mismatches on a system where both are 32 bits. It's worth fixing the annoying errors to catch the real ones. Signed-off-by: NAndrew Klossner <andrew@cesa.opbu.xerox.com>
-
- 15 2月, 2008 1 次提交
-
-
Signed-off-by: NJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
-
- 05 2月, 2008 1 次提交
-
-
allow to use a different server as set in serverip add CONFIG_TFTP_FILE_NAME_MAX_LEN to configure the file name length if not defined the max length will be at 128 Signed-off-by: NJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
-
- 18 11月, 2007 1 次提交
-
-
- 31 8月, 2007 1 次提交
-
-
由 Wolfgang Denk 提交于
The old code had a loop limit overflow bug which caused a semi- infinite loop for small packets, because in "i<len-8", "i" was signed, but "len" was unsigned, and "len-8" became a huge number for small values of "len". This is a workaround which replaces broken commit 8f1bc284. Signed-off-by: NWolfgang Denk <wd@denx.de>
-