mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
gnrc_ipv6_nib: Force unspecified next hop addresses
This commit is contained in:
parent
41204c8b81
commit
3ab7896b18
@ -84,8 +84,11 @@ void _nib_release(void)
|
||||
static inline bool _addr_equals(const ipv6_addr_t *addr,
|
||||
const _nib_onl_entry_t *node)
|
||||
{
|
||||
return (addr == NULL) || ipv6_addr_is_unspecified(&node->ipv6) ||
|
||||
(ipv6_addr_equal(addr, &node->ipv6));
|
||||
if (addr == NULL) {
|
||||
return ipv6_addr_is_unspecified(&node->ipv6);
|
||||
} else {
|
||||
return ipv6_addr_equal(addr, &node->ipv6);
|
||||
}
|
||||
}
|
||||
|
||||
_nib_onl_entry_t *_nib_onl_alloc(const ipv6_addr_t *addr, unsigned iface)
|
||||
|
Loading…
Reference in New Issue
Block a user