From 0e0eef1273e90d66a531172e77151d4bebdac17c Mon Sep 17 00:00:00 2001 From: Martine Lenders Date: Tue, 17 Nov 2015 18:05:44 +0100 Subject: [PATCH] gnrc_ipv6: use gnrc_ipv6_nc_get_l2_addr() --- sys/net/gnrc/network_layer/ipv6/gnrc_ipv6.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/sys/net/gnrc/network_layer/ipv6/gnrc_ipv6.c b/sys/net/gnrc/network_layer/ipv6/gnrc_ipv6.c index 1b7beb17ba..8b50581aa7 100644 --- a/sys/net/gnrc/network_layer/ipv6/gnrc_ipv6.c +++ b/sys/net/gnrc/network_layer/ipv6/gnrc_ipv6.c @@ -544,12 +544,7 @@ static inline kernel_pid_t _next_hop_l2addr(uint8_t *l2addr, uint8_t *l2addr_len #elif !defined(MODULE_GNRC_SIXLOWPAN_ND) && defined(MODULE_GNRC_IPV6_NC) (void)pkt; gnrc_ipv6_nc_t *nc = gnrc_ipv6_nc_get(iface, dst); - if ((nc == NULL) || !gnrc_ipv6_nc_is_reachable(nc)) { - return KERNEL_PID_UNDEF; - } - found_iface = nc->iface; - *l2addr_len = nc->l2_addr_len; - memcpy(l2addr, nc->l2_addr, nc->l2_addr_len); + found_iface = gnrc_ipv6_nc_get_l2_addr(l2addr, l2addr_len, nc); #elif !defined(MODULE_GNRC_SIXLOWPAN_ND) found_iface = KERNEL_PID_UNDEF; (void)l2addr;