summaryrefslogtreecommitdiff
path: root/zebra/kernel_netlink.c
diff options
context:
space:
mode:
Diffstat (limited to 'zebra/kernel_netlink.c')
-rw-r--r--zebra/kernel_netlink.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/zebra/kernel_netlink.c b/zebra/kernel_netlink.c
index 7fc2d61332..015e11b3a5 100644
--- a/zebra/kernel_netlink.c
+++ b/zebra/kernel_netlink.c
@@ -20,6 +20,8 @@
#include <zebra.h>
+#ifdef HAVE_NETLINK
+
#include "linklist.h"
#include "if.h"
#include "log.h"
@@ -260,8 +262,9 @@ static int netlink_information_fetch(struct sockaddr_nl *snl,
return netlink_neigh_change(snl, h, ns_id);
break;
default:
- zlog_warn("Unknown netlink nlmsg_type %d vrf %u\n",
- h->nlmsg_type, ns_id);
+ if (IS_ZEBRA_DEBUG_KERNEL)
+ zlog_debug("Unknown netlink nlmsg_type %d vrf %u\n",
+ h->nlmsg_type, ns_id);
break;
}
return 0;
@@ -826,3 +829,5 @@ void kernel_terminate(struct zebra_ns *zns)
zns->netlink_cmd.sock = -1;
}
}
+
+#endif /* HAVE_NETLINK */