diff --git a/net/sixlowpan/sixlowpan_utils.c b/net/sixlowpan/sixlowpan_utils.c index c15bd2d9dc..696503b5a9 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.