mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
Merge pull request #3883 from OlegHahm/6lowpan_nd_nce_tentative
6lowpan nd: tentative NCE is like no NCE
This commit is contained in:
commit
b19592c478
@ -170,9 +170,11 @@ kernel_pid_t gnrc_sixlowpan_nd_next_hop_l2addr(uint8_t *l2addr, uint8_t *l2addr_
|
||||
/* get if not gotten from previous check */
|
||||
nc_entry = gnrc_ipv6_nc_get(iface, next_hop);
|
||||
}
|
||||
/* If a NCE for this destination exist, we can use even for link-local
|
||||
* addresses. This should be only the case for 6LBRs. */
|
||||
if ((ipv6_addr_is_link_local(next_hop)) && (nc_entry == NULL)) {
|
||||
/* If a (non-tentative) NCE for this destination exist, we can use even for
|
||||
* link-local addresses. This should be only the case for 6LBRs. */
|
||||
if ((ipv6_addr_is_link_local(next_hop)) &&
|
||||
((nc_entry == NULL) ||
|
||||
(gnrc_ipv6_nc_get_type(nc_entry) == GNRC_IPV6_NC_TYPE_TENTATIVE))) {
|
||||
/* in case of a border router there is no sensible way for address resolution
|
||||
* if the interface is not given */
|
||||
#ifdef MODULE_GNRC_SIXLOWPAN_ND_BORDER_ROUTER
|
||||
|
Loading…
Reference in New Issue
Block a user