summaryrefslogtreecommitdiff
path: root/nuttx/drivers/net
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-11-14 18:25:33 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-11-14 18:25:33 -0600
commitdefc8c9b135e6d13febf7438147da8452477398a (patch)
treecd608e919910dea41b53679d7146cdefc2ce2ebd /nuttx/drivers/net
parentb37853d028a2742da5aeeacc27a65bb279ea60d6 (diff)
downloadpx4-nuttx-defc8c9b135e6d13febf7438147da8452477398a.tar.gz
px4-nuttx-defc8c9b135e6d13febf7438147da8452477398a.tar.bz2
px4-nuttx-defc8c9b135e6d13febf7438147da8452477398a.zip
ARP: Add support for the case where there are multiple networks: One being Etherenet and the other not (say slip or perhaps someday PPP). In that case, we need to suppress ARP-related operations on the SLIP/PPP interface only
Diffstat (limited to 'nuttx/drivers/net')
-rw-r--r--nuttx/drivers/net/slip.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/nuttx/drivers/net/slip.c b/nuttx/drivers/net/slip.c
index 799a12f56..ed1b0d9d6 100644
--- a/nuttx/drivers/net/slip.c
+++ b/nuttx/drivers/net/slip.c
@@ -935,6 +935,17 @@ int slip_initialize(int intf, FAR const char *devname)
#endif
priv->dev.d_private = priv; /* Used to recover private state from dev */
+#ifdef CONFIG_NET_ETHERNET
+ /* If ARP is supported, indicate that it is not required for this interface.
+ * ARP is only built of CONFIG_NET_ETHERNET is enabled which always
+ * requires ARP support. The following can happening only there multiple
+ * network interfaces enabled (CONFIG_NET_MULTINIC) and one of the
+ * interfaces is Ethernet and another is SLIP.
+ */
+
+ priv->dev.d_flags = IFF_NOARP;
+#endif
+
/* Open the device */
priv->fd = open(devname, O_RDWR, 0666);