net: nbr: Print network interface pointer when adding neighbor
Useful when debugging issues in neighbor management. Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
This commit is contained in:
parent
bc4ce8bda8
commit
4dc2dd87ea
|
@ -457,10 +457,11 @@ struct net_nbr *net_ipv6_nbr_add(struct net_if *iface,
|
|||
net_ipv6_send_ns(iface, NULL, NULL, NULL, addr, false);
|
||||
}
|
||||
|
||||
NET_DBG("[%d] nbr %p state %d router %d IPv6 %s ll %s",
|
||||
NET_DBG("[%d] nbr %p state %d router %d IPv6 %s ll %s iface %p",
|
||||
nbr->idx, nbr, state, is_router,
|
||||
net_sprint_ipv6_addr(addr),
|
||||
net_sprint_ll_addr(lladdr->addr, lladdr->len));
|
||||
net_sprint_ll_addr(lladdr->addr, lladdr->len),
|
||||
nbr->iface);
|
||||
|
||||
return nbr;
|
||||
}
|
||||
|
|
|
@ -325,9 +325,10 @@ static struct net_nbr *nbr_add(struct net_if *iface,
|
|||
return NULL;
|
||||
}
|
||||
|
||||
NET_DBG("[%d] nbr %p IPv6 %s ll %s",
|
||||
NET_DBG("[%d] nbr %p IPv6 %s ll %s iface %p",
|
||||
nbr->idx, nbr, net_sprint_ipv6_addr(addr),
|
||||
net_sprint_ll_addr(lladdr->addr, lladdr->len));
|
||||
net_sprint_ll_addr(lladdr->addr, lladdr->len),
|
||||
nbr->iface);
|
||||
|
||||
return nbr;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue