From 919841a3832f15bd3e2038d83eab6a048492f81a Mon Sep 17 00:00:00 2001 From: Anthony Merlino Date: Wed, 22 Nov 2017 17:16:54 -0500 Subject: [PATCH] sixlowpan: Fixes build error introduced by recent PR when routing table is enabled. --- net/sixlowpan/sixlowpan_utils.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/net/sixlowpan/sixlowpan_utils.c b/net/sixlowpan/sixlowpan_utils.c index c15bd2d9dca..696503b5a93 100644 --- a/net/sixlowpan/sixlowpan_utils.c +++ b/net/sixlowpan/sixlowpan_utils.c @@ -59,6 +59,7 @@ #include #include +#include "route/route.h" #include "inet/inet.h" #include "sixlowpan/sixlowpan_internal.h" @@ -201,7 +202,7 @@ int sixlowpan_nexthopaddr(FAR struct radio_driver_s *radio, * destination address when determining the MAC address. */ - netdev_ipv6_router(radio->r_dev, ipaddr, router); + netdev_ipv6_router(&radio->r_dev, ipaddr, router); #else /* Use the device's default router IPv6 address instead of the * destination address when determining the MAC address.