]> git.proxmox.com Git - mirror_frr.git/blobdiff - zebra/rtread_sysctl.c
Merge pull request #3465 from donaldsharp/nexthop_active_update
[mirror_frr.git] / zebra / rtread_sysctl.c
index 53ed0e7906be83d7915be2d19535024689bae939..f88586a6ea02aba1af1ea106ff7aecc28701c98a 100644 (file)
 #include "log.h"
 #include "vrf.h"
 
-#include "zebra/zserv.h"
 #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;
        }
@@ -93,4 +96,8 @@ void neigh_read_for_vlan(struct zebra_ns *zns, struct interface *vlan_if)
 {
 }
 
+void kernel_read_pbr_rules(struct zebra_ns *zns)
+{
+}
+
 #endif /* !defined(GNU_LINUX) && !defined(SUNOS_5) */