mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 08:36:24 +08:00
Network: Various fixes for clean compile with both Ethernet and SLIP
This commit is contained in:
@@ -51,6 +51,7 @@
|
|||||||
#include <nuttx/net/net.h>
|
#include <nuttx/net/net.h>
|
||||||
#include <nuttx/net/netdev.h>
|
#include <nuttx/net/netdev.h>
|
||||||
#include <nuttx/net/udp.h>
|
#include <nuttx/net/udp.h>
|
||||||
|
#include <nuttx/net/tcp.h>
|
||||||
|
|
||||||
#include "devif/devif.h"
|
#include "devif/devif.h"
|
||||||
#include "tcp/tcp.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.
|
* determine the correct initial MSS.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
DEBUGASSERT(psock->s_conn);
|
DEBUGASSERT(pstate->tc_conn);
|
||||||
psock->s_conn->mss = TCP_INITIAL_MSS(dev);
|
pstate->tc_conn->mss = TCP_INITIAL_MSS(dev);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Wake up the waiting thread */
|
/* Wake up the waiting thread */
|
||||||
|
|||||||
Reference in New Issue
Block a user