summaryrefslogtreecommitdiff
path: root/nuttx/net
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-11-15 13:52:39 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-11-15 13:52:39 -0600
commit3e32e050072dcda6790295188d3bf7ba11e477f6 (patch)
tree0850aa6f9df6b95493be9e67bde721f3c856ea2f /nuttx/net
parent24a33a43436bcc8430c5c1e6707dedc8c2531171 (diff)
downloadnuttx-3e32e050072dcda6790295188d3bf7ba11e477f6.tar.gz
nuttx-3e32e050072dcda6790295188d3bf7ba11e477f6.tar.bz2
nuttx-3e32e050072dcda6790295188d3bf7ba11e477f6.zip
Network: Various fixes for clean compile with both Ethernet and SLIP
Diffstat (limited to 'nuttx/net')
-rw-r--r--nuttx/net/socket/connect.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/nuttx/net/socket/connect.c b/nuttx/net/socket/connect.c
index 291a16008..51e4b8426 100644
--- a/nuttx/net/socket/connect.c
+++ b/nuttx/net/socket/connect.c
@@ -51,6 +51,7 @@
#include <nuttx/net/net.h>
#include <nuttx/net/netdev.h>
#include <nuttx/net/udp.h>
+#include <nuttx/net/tcp.h>
#include "devif/devif.h"
#include "tcp/tcp.h"
@@ -257,8 +258,8 @@ static uint16_t psock_connect_interrupt(FAR struct net_driver_s *dev,
* determine the correct initial MSS.
*/
- DEBUGASSERT(psock->s_conn);
- psock->s_conn->mss = TCP_INITIAL_MSS(dev);
+ DEBUGASSERT(pstate->tc_conn);
+ pstate->tc_conn->mss = TCP_INITIAL_MSS(dev);
#endif
/* Wake up the waiting thread */