summaryrefslogtreecommitdiff
path: root/nuttx/net/socket/connect.c
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2015-01-16 15:03:10 -0600
committerGregory Nutt <gnutt@nuttx.org>2015-01-16 15:03:10 -0600
commit25899ddde960f404256bda7848e7f044105dea9e (patch)
tree639b4c72043bdc3f94a926562044391b2dabed9f /nuttx/net/socket/connect.c
parent8b011e3350a04464334ab5e0fc3b8e5d44bdccbc (diff)
downloadpx4-nuttx-25899ddde960f404256bda7848e7f044105dea9e.tar.gz
px4-nuttx-25899ddde960f404256bda7848e7f044105dea9e.tar.bz2
px4-nuttx-25899ddde960f404256bda7848e7f044105dea9e.zip
Networking: UDP and TCP MSS depends on the IP header size (as well as the link layer header size) and cannot be represented with a single value.
Diffstat (limited to 'nuttx/net/socket/connect.c')
-rw-r--r--nuttx/net/socket/connect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nuttx/net/socket/connect.c b/nuttx/net/socket/connect.c
index 51e4b8426..838cec0ba 100644
--- a/nuttx/net/socket/connect.c
+++ b/nuttx/net/socket/connect.c
@@ -259,7 +259,7 @@ static uint16_t psock_connect_interrupt(FAR struct net_driver_s *dev,
*/
DEBUGASSERT(pstate->tc_conn);
- pstate->tc_conn->mss = TCP_INITIAL_MSS(dev);
+ pstate->tc_conn->mss = TCP_IPv4_INITIAL_MSS(dev);
#endif
/* Wake up the waiting thread */