mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-11-18 20:10:53 +00:00
tcp_out.c: Fix for bug #20075 : "A problem with keep-alive timer and TCP flags" where TCP flags wasn't initialized in tcp_keepalive. Reported by Srinivas Gollakota with help of Oleg Tyshev.
This commit is contained in:
parent
5993c816d8
commit
1d7caed340
@ -196,6 +196,10 @@ HISTORY
|
|||||||
|
|
||||||
++ Bug fixes:
|
++ Bug fixes:
|
||||||
|
|
||||||
|
2007-06-11 Srinivas Gollakota & Oleg Tyshev
|
||||||
|
* tcp_out.c: Fix for bug #20075 : "A problem with keep-alive timer and TCP flags"
|
||||||
|
where TCP flags wasn't initialized in tcp_keepalive.
|
||||||
|
|
||||||
2007-06-03 Simon Goldschmidt
|
2007-06-03 Simon Goldschmidt
|
||||||
* udp.c: udp_input(): Input pbuf was not freed if pcb had no recv function
|
* udp.c: udp_input(): Input pbuf was not freed if pcb had no recv function
|
||||||
registered, p->payload was modified without modifying p->len if sending
|
registered, p->payload was modified without modifying p->len if sending
|
||||||
|
@ -763,6 +763,7 @@ tcp_keepalive(struct tcp_pcb *pcb)
|
|||||||
tcphdr->dest = htons(pcb->remote_port);
|
tcphdr->dest = htons(pcb->remote_port);
|
||||||
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, 0);
|
||||||
tcphdr->wnd = htons(pcb->rcv_wnd);
|
tcphdr->wnd = htons(pcb->rcv_wnd);
|
||||||
tcphdr->urgp = 0;
|
tcphdr->urgp = 0;
|
||||||
TCPH_HDRLEN_SET(tcphdr, 5);
|
TCPH_HDRLEN_SET(tcphdr, 5);
|
||||||
|
Loading…
Reference in New Issue
Block a user