From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ben Warren Date: Tue, 22 Sep 2009 16:32:37 -0700 Subject: [U-Boot] tftp packet failure counter reset In-Reply-To: References: Message-ID: <4AB95E95.1040202@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Jeffery Palmer wrote: > I do large transfers via tftp, and since the timeout counter never resets, they often fail since the failures are counted throughout the entire transfer. By resetting the counter to 0 on a successful packet, this issue is fixed > > > > tftp.c: > } else { > if (((TftpBlock - 1) % 10) == 0) { > putc ('#'); > } else if ((TftpBlock % (10 * HASHES_PER_LINE)) == 0) { > puts ("\n\t "); > } > + //Reset timeout count since we received a good packet > + TftpTimeoutCount = 0; > } > > if (TftpState == STATE_RRQ) > Please send a proper patch in plaintext with all the right bits and pieces. regards, Ben