net: tftp: Make sure timeout will not effect wrap offset
authorrockly <rockly703@gmail.com>
Sat, 3 Aug 2013 10:09:05 +0000 (18:09 +0800)
committerJoe Hershberger <joe.hershberger@ni.com>
Fri, 22 Nov 2013 20:39:31 +0000 (14:39 -0600)
commitf754f5dc6fe4b6cfbd28a9a6d9d08059d9312101
tree13a44100a337a2bafab5cb916d24227dab7dfdf5
parentc2e5e802ecb7ab668ce9911b210ed68c804b349f
net: tftp: Make sure timeout will not effect wrap offset

When the block 0 store to the memory of client and timeout at this
moment. Because of no ACK packet, the server will send block 0 again,
if this client reconnect to the server at this time,
TftpBlockWrapOffset will become larger than it should be.

Signed-off-by: Rockly <rocklygnome@gmail.com>
Patch: 264417
net/tftp.c