mirror of
https://github.com/apache/nuttx.git
synced 2026-09-25 01:07:40 +08:00
Various fixes to get Unix domain sockets to build on the simulator without Ethernet
This commit is contained in:
@@ -148,7 +148,7 @@
|
||||
# define MIN_NET_DEV_MTU CONFIG_NET_SLIP_MTU
|
||||
# define MAX_NET_DEV_MTU CONFIG_NET_SLIP_MTU
|
||||
|
||||
#else /* if defined(CONFIG_NET_ETHERNET) */
|
||||
#elif defined(CONFIG_NET_ETHERNET)
|
||||
/* Assume standard Ethernet link layer header */
|
||||
|
||||
# define NET_LL_HDRLEN(d) 14
|
||||
@@ -156,6 +156,14 @@
|
||||
# define MIN_NET_DEV_MTU CONFIG_NET_ETH_MTU
|
||||
# define MAX_NET_DEV_MTU CONFIG_NET_ETH_MTU
|
||||
|
||||
#else
|
||||
/* Perhaps only Unix domain sockets */
|
||||
|
||||
# define NET_LL_HDRLEN(d) 0
|
||||
# define NET_DEV_MTU(d) 0
|
||||
# define MIN_NET_DEV_MTU 0
|
||||
# define MAX_NET_DEV_MTU 0
|
||||
|
||||
#endif /* MULTILINK or SLIP or ETHERNET */
|
||||
|
||||
/* Layer 3/4 Configuration Options ******************************************/
|
||||
|
||||
Reference in New Issue
Block a user