mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-10-02 12:52:10 +00:00
bug-fix in the TCP_EVENT_RECV macro (has to call tcp_recved if pcb->recv is NULL to keep rcv_wnd correct)
This commit is contained in:
parent
650f16b6d9
commit
bcc87ef851
@ -43,6 +43,10 @@ HISTORY
|
|||||||
|
|
||||||
++ Bugfixes:
|
++ Bugfixes:
|
||||||
|
|
||||||
|
2009-10-25: Simon Goldschmidt
|
||||||
|
* tcp.h: bug-fix in the TCP_EVENT_RECV macro (has to call tcp_recved if
|
||||||
|
pcb->recv is NULL to keep rcv_wnd correct)
|
||||||
|
|
||||||
2009-10-25: Simon Goldschmidt
|
2009-10-25: Simon Goldschmidt
|
||||||
* tcp_in.c: Fixed bug #26251: RST process in TIME_WAIT TCP state
|
* tcp_in.c: Fixed bug #26251: RST process in TIME_WAIT TCP state
|
||||||
|
|
||||||
|
@ -489,9 +489,11 @@ err_t lwip_tcp_event(void *arg, struct tcp_pcb *pcb,
|
|||||||
(ret) = (pcb)->recv((pcb)->callback_arg,(pcb),(p),(err)); \
|
(ret) = (pcb)->recv((pcb)->callback_arg,(pcb),(p),(err)); \
|
||||||
} else { \
|
} else { \
|
||||||
(ret) = ERR_OK; \
|
(ret) = ERR_OK; \
|
||||||
if (p != NULL) \
|
if (p != NULL) { \
|
||||||
|
tcp_recved((pcb), ((struct pbuf*)(p))->tot_len); \
|
||||||
pbuf_free(p); \
|
pbuf_free(p); \
|
||||||
} \
|
} \
|
||||||
|
} \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
#define TCP_EVENT_CONNECTED(pcb,err,ret) \
|
#define TCP_EVENT_CONNECTED(pcb,err,ret) \
|
||||||
|
Loading…
Reference in New Issue
Block a user