]> git.puffer.fish Git - mirror/frr.git/commitdiff
zebra: log if RTNLGRP_BRVLAN register fails
authorStephen Worley <sworley@nvidia.com>
Fri, 9 Dec 2022 21:59:34 +0000 (16:59 -0500)
committerStephen Worley <sworley@nvidia.com>
Mon, 13 Feb 2023 23:12:05 +0000 (18:12 -0500)
Log a notice if the RTNLGRP_BRVLAN netlink membership registration
fails.

Signed-off-by: Stephen Worley <sworley@nvidia.com>
zebra/kernel_netlink.c

index 2fd1543b3174410ed8e04f752337af648c790dac..b6652aa82480ad826a0d067d85d1d6eda6e59465 100644 (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)