Closed hiowaguy closed 5 years ago
This article nicely summaries the discussion around block counter wrap around: https://www.compuphase.com/tftp.htm. Both, wrapping arround to zero and wrapping to one should be supported.
I enhanced the library and you can now configure the behaviour using the ITftpTransfer.BlockCounterWrapping property.
Correct transfer error on large data files when block number 65535 is exceeded. Per the TFTP spec, the lowest valid TFTP data block number is 1, instead of 0. Fixes issue #6 .
Reran unit tests (all passed) and confirmed the issue is resolved.