Correct change to probe window setting

This commit is contained in:
kieranm
2009-03-27 11:04:04 +00:00
parent efac109803
commit fd41c5de2d
2 changed files with 6 additions and 2 deletions

View File

@@ -831,7 +831,7 @@ tcp_keepalive(struct tcp_pcb *pcb)
tcphdr->seqno = htonl(pcb->snd_nxt - 1);
tcphdr->ackno = htonl(pcb->rcv_nxt);
TCPH_FLAGS_SET(tcphdr, TCP_ACK);
tcphdr->wnd = htons(pcb->rcv_ann_wnd + 1);
tcphdr->wnd = htons(pcb->rcv_ann_wnd);
tcphdr->urgp = 0;
TCPH_HDRLEN_SET(tcphdr, 5);
@@ -914,7 +914,7 @@ tcp_zero_window_probe(struct tcp_pcb *pcb)
tcphdr->seqno = seg->tcphdr->seqno;
tcphdr->ackno = htonl(pcb->rcv_nxt);
TCPH_FLAGS_SET(tcphdr, TCP_ACK);
tcphdr->wnd = htons(pcb->rcv_ann_wnd + 1);
tcphdr->wnd = htons(pcb->rcv_ann_wnd);
tcphdr->urgp = 0;
TCPH_HDRLEN_SET(tcphdr, 5);