From: Wolfgang Denk Date: Thu, 30 Aug 2007 12:42:15 +0000 (+0200) Subject: Backout commit 8f1bc284 as it causes TFTP to fail. X-Git-Tag: v1.3.0-rc1~12^2~1 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ff13ac8c7bbebb238e339592de765c546dba1073;p=u-boot Backout commit 8f1bc284 as it causes TFTP to fail. Signed-off-by: Wolfgang Denk --- diff --git a/net/tftp.c b/net/tftp.c index 27f5e88be8..fb2f50564e 100644 --- a/net/tftp.c +++ b/net/tftp.c @@ -238,9 +238,9 @@ TftpSend (void) static void TftpHandler (uchar * pkt, unsigned dest, unsigned src, unsigned len) { - char * blksize; ushort proto; ushort *s; + int i; if (dest != TftpOurPort) { #ifdef CONFIG_MCAST_TFTP @@ -272,22 +272,22 @@ TftpHandler (uchar * pkt, unsigned dest, unsigned src, unsigned len) case TFTP_OACK: #ifdef ET_DEBUG - printf("Got OACK:\n"); - print_buffer (0, pkt, 1, len, 16); + printf("Got OACK: %s %s\n", pkt, pkt+strlen(pkt)+1); #endif TftpState = STATE_OACK; TftpServerPort = src; - /* Check for 'blksize' option */ - pkt[len] = 0; /* NULL terminate so string ops work */ - blksize = strstr((char*)pkt, "blksize"); - if ((blksize) && (blksize + 8 < (char*)pkt + len)) { - TftpBlkSize = simple_strtoul(blksize + 8, NULL, 10); + for (i=0;i