From 6796a8dde653598dec5c234bf68b2b3bd246a099 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sun, 23 Nov 2014 11:00:22 -0600 Subject: Add logic to netdev_findbyaddr() to return the correct network device for the case where a broadcast address is used. This change caused trivial ripples through other files because additional parameters are required for netdev_findbyaddr() when CONFIG_NET_MULTINIC --- nuttx/net/arp/arp_notify.c | 4 ---- nuttx/net/arp/arp_send.c | 4 ++++ 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'nuttx/net/arp') diff --git a/nuttx/net/arp/arp_notify.c b/nuttx/net/arp/arp_notify.c index cc3dc6fd2..37bb1686d 100644 --- a/nuttx/net/arp/arp_notify.c +++ b/nuttx/net/arp/arp_notify.c @@ -72,10 +72,6 @@ static struct arp_notify_s *g_arp_waiters; * Private Functions ****************************************************************************/ -/**************************************************************************** - * Function: arp_send_interrupt - ****************************************************************************/ - /**************************************************************************** * Public Functions ****************************************************************************/ diff --git a/nuttx/net/arp/arp_send.c b/nuttx/net/arp/arp_send.c index 8433aa964..b3803d0f1 100644 --- a/nuttx/net/arp/arp_send.c +++ b/nuttx/net/arp/arp_send.c @@ -222,7 +222,11 @@ int arp_send(in_addr_t ipaddr) /* Get the device that can route this request */ +#ifdef CONFIG_NET_MULTILINK + dev = netdev_findbyaddr(g_allzeroaddr, ipaddr); +#else dev = netdev_findbyaddr(ipaddr); +#endif if (!dev) { ndbg("ERROR: Unreachable: %08lx\n", (unsigned long)ipaddr); -- cgit v1.2.3