commit 572cd24c4971c713f5fe06df55a8d78c3553c4ed
Author: Jiping Ma <email address hidden>
Date: Tue Aug 31 20:07:04 2021 -0700
tftp: roll over block counter to prevent timeouts with data packets
The block number is a 16-bit counter which only allows to fetch
files no bigger than 65535 * blksize. To avoid this limit, the
counter is rolled over. This behavior isn't defined in RFC 1350
but is handled by many TFTP servers and it's what GRUB was doing
before implicitly due an overflow.
Closes-Bug: #1938559
Signed-off-by: Jiping Ma <email address hidden>
Change-Id: I4a0c04cf15b87f6f40c7a979d20fb3c57657cefd
Reviewed: https:/ /review. opendev. org/c/starlingx /integ/ +/806829 /opendev. org/starlingx/ integ/commit/ 572cd24c4971c71 3f5fe06df55a8d7 8c3553c4ed
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 572cd24c4971c71 3f5fe06df55a8d7 8c3553c4ed
Author: Jiping Ma <email address hidden>
Date: Tue Aug 31 20:07:04 2021 -0700
tftp: roll over block counter to prevent timeouts with data packets
The block number is a 16-bit counter which only allows to fetch
files no bigger than 65535 * blksize. To avoid this limit, the
counter is rolled over. This behavior isn't defined in RFC 1350
but is handled by many TFTP servers and it's what GRUB was doing
before implicitly due an overflow.
Closes-Bug: #1938559
Signed-off-by: Jiping Ma <email address hidden> 6f40c7a979d20fb 3c57657cefd
Change-Id: I4a0c04cf15b87f