mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-17 02:22:17 +00:00
bfdd: add debug flag around log
Signed-off-by: Lynne Morrison <lynne.morrison@ibm.com>
This commit is contained in:
parent
d63ccc9248
commit
59342702bf
@ -1742,9 +1742,10 @@ void bfd_peer_mac_set(int sd, struct bfd_session *bfd,
|
||||
strlcpy(arpreq_.arp_dev, ifp->name, sizeof(arpreq_.arp_dev));
|
||||
|
||||
if (ioctl(sd, SIOCGARP, &arpreq_) < 0) {
|
||||
zlog_warn(
|
||||
"BFD: getting peer's mac on %s failed error %s",
|
||||
ifp->name, strerror(errno));
|
||||
if (bglobal.debug_network)
|
||||
zlog_debug(
|
||||
"BFD: getting peer's mac on %s failed error %s",
|
||||
ifp->name, strerror(errno));
|
||||
UNSET_FLAG(bfd->flags, BFD_SESS_FLAG_MAC_SET);
|
||||
memset(bfd->peer_hw_addr, 0, sizeof(bfd->peer_hw_addr));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user