Fix initial block number

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@890 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo
2008-09-07 02:06:49 +00:00
parent 5e4dfe0d21
commit a9b2665c99
+2 -1
View File
@@ -317,7 +317,7 @@ int tftpput(const char *local, const char *remote, in_addr_t addr, boolean binar
struct sockaddr_in server; /* The address of the TFTP server */
ubyte *packet; /* Allocated memory to hold one packet */
off_t offset; /* Offset into source file */
uint16 blockno = 0; /* The current transfer block number */
uint16 blockno; /* The current transfer block number */
uint16 rblockno; /* The ACK'ed block number */
uint16 port = 0; /* This is the port number for the transfer */
int packetlen; /* The length of the data packet */
@@ -360,6 +360,7 @@ int tftpput(const char *local, const char *remote, in_addr_t addr, boolean binar
* of droppying packets if there is nothing hit in the ARP table.
*/
blockno = 1;
retry = 0;
for (;;)
{