tftp.c: TFTP timeout and unexpected block adjustments
authorMarcin Adamski <mass85@tlen.pl>
Thu, 13 Oct 2011 17:45:36 +0000 (19:45 +0200)
committerYang Tse <yangsita@gmail.com>
Thu, 13 Oct 2011 17:45:36 +0000 (19:45 +0200)
commit03adff1eba561c433a2667046c52d609322e684a
tree854a237b0cf48d6c343c738fa37a837888bc2bf9
parent34770b8ab0f2881b7437ef73ca757957335997a0
tftp.c: TFTP timeout and unexpected block adjustments

Set ACK timeout to 5 seconds.

If we are waiting for block X and receive block Y that is the expected one, we
should send ACK and increase X (which is already implemented). Otherwise drop
the packet and don't increase retry counter.
lib/tftp.c