TCP window scaling: change tcp_pcb::acked to u32_t when window scaling is enabled to prevent an overflow when more than 64 Kbytes are ACKed

This commit is contained in:
Simon Goldschmidt
2014-02-07 11:32:02 +01:00
parent 2dab478c3f
commit a44e2190d6
2 changed files with 20 additions and 6 deletions

View File

@@ -244,7 +244,7 @@ struct tcp_pcb {
tcpwnd_size_t snd_wnd; /* sender window */
tcpwnd_size_t snd_wnd_max; /* the maximum sender window announced by the remote host */
u16_t acked;
tcpwnd_size_t acked;
tcpwnd_size_t snd_buf; /* Available buffer space for sending (in bytes). */
#define TCP_SNDQUEUELEN_OVERFLOW (0xffffU-3)