summaryrefslogtreecommitdiff
path: root/nuttx/include
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2015-01-27 14:11:46 -0600
committerGregory Nutt <gnutt@nuttx.org>2015-01-27 14:11:46 -0600
commit679244ccea82868acb86ef68fe550cb65c475c5c (patch)
treeaa783282c4c9c3d61628765e9231b7fc4462c58a /nuttx/include
parenta62b97e36baab287c8bb412455b042d7274e567f (diff)
downloadpx4-nuttx-679244ccea82868acb86ef68fe550cb65c475c5c.tar.gz
px4-nuttx-679244ccea82868acb86ef68fe550cb65c475c5c.tar.bz2
px4-nuttx-679244ccea82868acb86ef68fe550cb65c475c5c.zip
Various fixes to get Unix domain sockets to build on the simulator without Ethernet
Diffstat (limited to 'nuttx/include')
-rw-r--r--nuttx/include/nuttx/net/netconfig.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/nuttx/include/nuttx/net/netconfig.h b/nuttx/include/nuttx/net/netconfig.h
index fed4f4ada..58e285b5f 100644
--- a/nuttx/include/nuttx/net/netconfig.h
+++ b/nuttx/include/nuttx/net/netconfig.h
@@ -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 ******************************************/