From: Quentin Young Date: Fri, 17 May 2019 00:26:24 +0000 (+0000) Subject: zebra: gracefully fail to protodown on bsd X-Git-Tag: frr-7.2~355^2~3 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=d8d78e2ca9d83b10e602d19e9ce4791b1927f3b1;p=mirror_frr.git zebra: gracefully fail to protodown on bsd Signed-off-by: Quentin Young --- diff --git a/zebra/interface.c b/zebra/interface.c index 2ed8a8200..13582008a 100644 --- a/zebra/interface.c +++ b/zebra/interface.c @@ -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. */