From defc8c9b135e6d13febf7438147da8452477398a Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Fri, 14 Nov 2014 18:25:33 -0600 Subject: 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 --- nuttx/drivers/net/slip.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'nuttx/drivers/net') 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); -- cgit v1.2.3