zebra: log if RTNLGRP_BRVLAN register fails

Log a notice if the RTNLGRP_BRVLAN netlink membership registration
fails.

Signed-off-by: Stephen Worley <sworley@nvidia.com>
This commit is contained in:
Stephen Worley 2022-12-09 16:59:34 -05:00
parent bc3421f088
commit 9e67a06737

View File

@ -1877,6 +1877,10 @@ void kernel_init(struct zebra_ns *zns)
ret = setsockopt(zns->netlink.sock, SOL_NETLINK, NETLINK_ADD_MEMBERSHIP,
&grp, sizeof(grp));
if (ret < 0)
zlog_notice(
"Registration for RTNLGRP_BRVLAN Membership failed : %d %s",
errno, safe_strerror(errno));
/*
* Let's tell the kernel that we want to receive extended
* ACKS over our command socket(s)