altugbakan / rs-tftpd

TFTP Server Daemon implemented in Rust
https://crates.io/crates/tftpd
MIT License
57 stars 14 forks source link

Verify the size of data received based on tsize option #18

Open dacitsme opened 7 months ago

dacitsme commented 7 months ago

The tsize option can be used to verify the size of the received file after the transfer is complete. If the tsize does not match the number of octets received then the error packet can be sent as a response to the last data packet.

This is a second verification apart from ACK that the data received is complete.

I can contribute the changes if you think it is appropriate to include this.

altugbakan commented 7 months ago

Hello and thank you for your interest in rs-tftpd! Of course you can contribute for this. I think this would be a great addition.