From 0df6729c3590525172a2615f2542a2243579b849 Mon Sep 17 00:00:00 2001 From: Martine Lenders Date: Fri, 15 May 2015 20:18:38 +0200 Subject: [PATCH] ng_ipv6: fix for API change in #2908 --- sys/net/network_layer/ng_ipv6/ng_ipv6.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/net/network_layer/ng_ipv6/ng_ipv6.c b/sys/net/network_layer/ng_ipv6/ng_ipv6.c index 326c0602c511..5a26186aabb0 100644 --- a/sys/net/network_layer/ng_ipv6/ng_ipv6.c +++ b/sys/net/network_layer/ng_ipv6/ng_ipv6.c @@ -446,7 +446,8 @@ static void _send(ng_pktsnip_t *pkt, bool prep_hdr) next_hop = &hdr->dst; /* TODO: next hop determination */ - if ((nc_entry = ng_ipv6_nc_get_reachable(iface, next_hop)) == NULL) { + if (((nc_entry = ng_ipv6_nc_get(iface, next_hop)) == NULL) || + !ng_ipv6_nc_is_reachable(nc_entry)) { DEBUG("ipv6: No link layer address for next_hop %s found.\n", ng_ipv6_addr_to_str(addr_str, next_hop, sizeof(addr_str))); ng_pktbuf_release(pkt);