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

@ -75,6 +75,10 @@ HISTORY
++ Bugfixes: ++ Bugfixes:
2009-03-27 Kieran Mansley
* tcp_out.c set window correctly on probes (correcting change made
yesterday)
2009-03-26 Kieran Mansley 2009-03-26 Kieran Mansley
* tcp.c, tcp_in.c, tcp.h: add tcp_abandon() to cope with dropping * tcp.c, tcp_in.c, tcp.h: add tcp_abandon() to cope with dropping
connections where no reset required (bug #25622) connections where no reset required (bug #25622)

View File

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