[PATCH] Fix tftp put protocol violation
Denys Vlasenko
vda.linux at googlemail.com
Fri Jul 24 20:35:43 UTC 2009
On Friday 24 July 2009 18:06, Atsushi Nemoto wrote:
> Current tftp/tftpd implementation violates RFC2347 ("TFTP Option
> Extension") on write request. The first DATA packet should have block
> number 1 but tftp send DATA packet with block number 0 and tftpd
> expects this wrong behavior.
>
> >From RFC2347:
> client server
> -------------------------------------------------------
> |2|barfile|0|octet|0|blksize|0|2048|0| --> WRQ
> <-- |6|blksize|0|2048|0| OACK
> |3|1| 2048 octets of data | --> DATA
> <-- |4|1| ACK
>
> Current behavior:
> client server
> -------------------------------------------------------
> |2|barfile|0|octet|0|blksize|0|2048|0| --> WRQ
> <-- |6|blksize|0|2048|0| OACK
> |3|0| 2048 octets of data | --> DATA
> <-- |4|0| ACK
Applied, thanks!
--
vda
More information about the busybox
mailing list