mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-05 10:08:41 +00:00
zebra: add debug in specific neigh fetch
add debug trace in specific neigh request send api to help debug an issue where synchronous response parse returns with NLMSG_DONE where there is no ipv6 neigh received. the count value is set to 1 because the request contained a spcific neigh. Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
This commit is contained in:
parent
2a0e69ae3c
commit
7c26c12106
@ -3285,6 +3285,15 @@ static int netlink_request_specific_neigh_in_vlan(struct zebra_ns *zns,
|
||||
|
||||
addattr_l(&req.n, sizeof(req), NDA_DST, &ip->ip.addr, ipa_len);
|
||||
|
||||
if (IS_ZEBRA_DEBUG_KERNEL) {
|
||||
char buf[INET6_ADDRSTRLEN];
|
||||
|
||||
zlog_debug("%s: Tx %s family %s IF %u IP %s flags 0x%x",
|
||||
__func__, nl_msg_type_to_str(type),
|
||||
nl_family_to_str(req.ndm.ndm_family), ifindex,
|
||||
ipaddr2str(ip, buf, sizeof(buf)), req.n.nlmsg_flags);
|
||||
}
|
||||
|
||||
return netlink_request(&zns->netlink_cmd, &req.n);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user