Skip to content

Commit

Permalink
gnrc_ipv6_nib: Force unspecified next hop addresses
Browse files Browse the repository at this point in the history
  • Loading branch information
xnumad committed Jul 29, 2024
1 parent 41204c8 commit 3ab7896
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions sys/net/gnrc/network_layer/ipv6/nib/_nib-internal.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 3ab7896

Please sign in to comment.