From 6d18300f981f34de6417d5cc596cc8d4f2409ab6 Mon Sep 17 00:00:00 2001 From: ahb Date: Sat, 15 Apr 2017 11:13:24 +0200 Subject: [PATCH] not a clean fix, but at least makes DHCP working with CONFIG_NETDEV_MULTINIC --- net/netdev/netdev_findbyaddr.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/net/netdev/netdev_findbyaddr.c b/net/netdev/netdev_findbyaddr.c index 25fbc02b8d..67ee9b558b 100644 --- a/net/netdev/netdev_findbyaddr.c +++ b/net/netdev/netdev_findbyaddr.c @@ -217,9 +217,11 @@ FAR struct net_driver_s *netdev_findby_ipv4addr(in_addr_t ripaddr) * broadcast packet out ALL local networks. I am not sure * of that and, in any event, there is nothing we can do * about that here. + * For now, simply return the first network interface in order + * to have working DHCP with CONFIG_NETDEV_MULTINIC. */ - return NULL; + return g_netdevices; } else {