mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 17:33:08 +08:00
Merged in antmerlino/nuttx/sixlowpan-build-error-fix (pull request #541)
sixlowpan: Fixes build error introduced by recent PR when routing table is enabled. Approved-by: Gregory Nutt <gnutt@nuttx.org>
This commit is contained in:
@@ -59,6 +59,7 @@
|
||||
#include <nuttx/wireless/pktradio.h>
|
||||
#include <nuttx/wireless/ieee802154/ieee802154_mac.h>
|
||||
|
||||
#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.
|
||||
|
||||
Reference in New Issue
Block a user