From d8d78e2ca9d83b10e602d19e9ce4791b1927f3b1 Mon Sep 17 00:00:00 2001 From: Quentin Young Date: Fri, 17 May 2019 00:26:24 +0000 Subject: [PATCH] zebra: gracefully fail to protodown on bsd Signed-off-by: Quentin Young --- zebra/interface.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/zebra/interface.c b/zebra/interface.c index 2ed8a82000..13582008a7 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. */ -- 2.39.5