Skip to content

Commit

Permalink
fixup! fixup! gnrc_ipv6_nib: clean up _resolve_addr()
Browse files Browse the repository at this point in the history
  • Loading branch information
benpicco committed Nov 29, 2022
1 parent 494fe6c commit 9cff238
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sys/net/gnrc/network_layer/ipv6/nib/nib.c
Original file line number Diff line number Diff line change
Expand Up @@ -1266,8 +1266,8 @@ static gnrc_pktqueue_t *_alloc_queue_entry(gnrc_pktsnip_t *pkt)
return NULL;
}

static bool _resolve_addr_from_nc(gnrc_netif_t *netif, gnrc_ipv6_nib_nc_t *nce,
_nib_onl_entry_t *entry)
static bool _resolve_addr_from_nc(_nib_onl_entry_t *entry, gnrc_netif_t *netif,
gnrc_ipv6_nib_nc_t *nce)
{
if (entry == NULL) {
return false;
Expand Down Expand Up @@ -1344,7 +1344,7 @@ static bool _resolve_addr(const ipv6_addr_t *dst, gnrc_netif_t *netif,
}

/* first check if address is cached */
if (_resolve_addr_from_nc(netif, nce, entry)) {
if (_resolve_addr_from_nc(entry, netif, nce)) {
DEBUG("nib: resolve address %s%%%u from neighbor cache\n",
ipv6_addr_to_str(addr_str, &entry->ipv6, sizeof(addr_str)),
_nib_onl_get_if(entry));
Expand Down

0 comments on commit 9cff238

Please sign in to comment.