mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-10-05 22:29:49 +00:00
TCP window scaling: don't parse window scaling option on retransmission
This commit is contained in:
parent
367ac04ed8
commit
98f98048bc
@ -1714,10 +1714,10 @@ tcp_parseopt(struct tcp_pcb *pcb)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
/* If syn was received with wnd scale option,
|
/* If syn was received with wnd scale option,
|
||||||
activate wnd scale opt */
|
activate wnd scale opt, but only if this is not a retransmission */
|
||||||
data = tcp_getoptbyte();
|
if ((flags & TCP_SYN) && !(pcb->flags & TF_WND_SCALE)) {
|
||||||
if (flags & TCP_SYN) {
|
|
||||||
/* An WND_SCALE option with the right option length. */
|
/* An WND_SCALE option with the right option length. */
|
||||||
|
data = tcp_getoptbyte();
|
||||||
pcb->snd_scale = data;
|
pcb->snd_scale = data;
|
||||||
if (pcb->snd_scale > 14U) {
|
if (pcb->snd_scale > 14U) {
|
||||||
pcb->snd_scale = 14U;
|
pcb->snd_scale = 14U;
|
||||||
|
Loading…
Reference in New Issue
Block a user