]> git.proxmox.com Git - mirror_frr.git/commitdiff
zebra: gracefully fail to protodown on bsd
authorQuentin Young <qlyoung@cumulusnetworks.com>
Fri, 17 May 2019 00:26:24 +0000 (00:26 +0000)
committerQuentin Young <qlyoung@cumulusnetworks.com>
Fri, 17 May 2019 00:27:08 +0000 (00:27 +0000)
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
zebra/interface.c

index 2ed8a82000573eb778bdb9b2c688865a31dbefa0..13582008a702641ff9a56907525532de9e1b463e 100644 (file)
@@ -1066,7 +1066,11 @@ void zebra_if_update_all_links(void)
 
 void zebra_if_set_protodown(struct interface *ifp, bool down)
 {
+#ifdef HAVE_NETLINK
        netlink_protodown(ifp, down);
+#else
+       zlog_warn("Protodown is not supported on this platform");
+#endif
 }
 
 /* Output prefix string to vty. */