]> git.proxmox.com Git - mirror_frr.git/blobdiff - zebra/rtread_sysctl.c
isisd: implement the 'lsp-too-large' notification
[mirror_frr.git] / zebra / rtread_sysctl.c
index fba67e3d0c4991a3e4d9fcabdf13ee1164114e4b..f88586a6ea02aba1af1ea106ff7aecc28701c98a 100644 (file)
@@ -31,6 +31,7 @@
 #include "zebra/rt.h"
 #include "zebra/kernel_socket.h"
 #include "zebra/zebra_pbr.h"
+#include "zebra/zebra_errors.h"
 
 /* Kernel routing table read up by sysctl function. */
 void route_read(struct zebra_ns *zns)
@@ -47,7 +48,8 @@ void route_read(struct zebra_ns *zns)
 
        /* Get buffer size. */
        if (sysctl(mib, MIBSIZ, NULL, &bufsiz, NULL, 0) < 0) {
-               zlog_warn("sysctl fail: %s", safe_strerror(errno));
+               flog_warn(EC_ZEBRA_SYSCTL_FAILED, "sysctl fail: %s",
+                         safe_strerror(errno));
                return;
        }
 
@@ -56,7 +58,8 @@ void route_read(struct zebra_ns *zns)
 
        /* Read routing table information by calling sysctl(). */
        if (sysctl(mib, MIBSIZ, buf, &bufsiz, NULL, 0) < 0) {
-               zlog_warn("sysctl() fail by %s", safe_strerror(errno));
+               flog_warn(EC_ZEBRA_SYSCTL_FAILED, "sysctl() fail by %s",
+                         safe_strerror(errno));
                XFREE(MTYPE_TMP, ref);
                return;
        }