mirror of
https://github.com/smaeul/u-boot.git
synced 2025-10-14 12:56:00 +01:00
net: tftp: fix tftp server initialization
Some globals where not properly initialized causing timeouts as data packets where not immediately acknowledged. Fixes: cc6b87ecaa96 ("net: tftp: Add client support for RFC 7440") Signed-off-by: Arjan Minzinga Zijlstra <arjan.minzingazijlstra@fox-it.com> Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
This commit is contained in:
parent
d79f1a8569
commit
1ffe366881
@ -906,6 +906,8 @@ void tftp_start_server(void)
|
|||||||
tftp_block_size = TFTP_BLOCK_SIZE;
|
tftp_block_size = TFTP_BLOCK_SIZE;
|
||||||
tftp_cur_block = 0;
|
tftp_cur_block = 0;
|
||||||
tftp_our_port = WELL_KNOWN_PORT;
|
tftp_our_port = WELL_KNOWN_PORT;
|
||||||
|
tftp_windowsize = 1;
|
||||||
|
tftp_next_ack = tftp_windowsize;
|
||||||
|
|
||||||
#ifdef CONFIG_TFTP_TSIZE
|
#ifdef CONFIG_TFTP_TSIZE
|
||||||
tftp_tsize = 0;
|
tftp_tsize = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user