When dup'ing sockets, need to clone fields for TCP write buffering too

This commit is contained in:
Gregory Nutt
2014-01-14 15:17:53 -06:00
parent f08cdc161d
commit 806af1f4e2
8 changed files with 19 additions and 13 deletions
+1 -1
View File
@@ -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;
+1 -1
View File
@@ -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 */