mirror of
https://github.com/apache/nuttx.git
synced 2026-06-08 18:37:46 +08:00
When dup'ing sockets, need to clone fields for TCP write buffering too
This commit is contained in:
@@ -106,7 +106,7 @@ struct socket
|
||||
|
||||
FAR void *s_conn; /* Connection: struct uip_conn or uip_udp_conn */
|
||||
|
||||
#ifdef CONFIG_NET_NTCP_WRITE_BUFFERS
|
||||
#ifdef CONFIG_NET_TCP_WRITE_BUFFERS
|
||||
/* Callback instance for TCP send */
|
||||
|
||||
FAR struct uip_callback_s *s_sndcb;
|
||||
|
||||
@@ -162,7 +162,7 @@ struct uip_conn
|
||||
uint16_t mss; /* Current maximum segment size for the
|
||||
* connection */
|
||||
uint16_t winsize; /* Current window size of the connection */
|
||||
#ifdef CONFIG_NET_NTCP_WRITE_BUFFERS
|
||||
#ifdef CONFIG_NET_TCP_WRITE_BUFFERS
|
||||
uint32_t unacked; /* Number bytes sent but not yet ACKed */
|
||||
#else
|
||||
uint16_t unacked; /* Number bytes sent but not yet ACKed */
|
||||
|
||||
Reference in New Issue
Block a user