#include "memory.h"
#include "log.h"
+#include "vrf.h"
#include "zebra/zserv.h"
#include "zebra/rt.h"
/* Kernel routing table read up by sysctl function. */
void
-route_read (void)
+route_read (struct zebra_vrf *zvrf)
{
caddr_t buf, end, ref;
size_t bufsiz;
NET_RT_DUMP,
0
};
-
+
+ if (zvrf->vrf_id != VRF_DEFAULT)
+ return;
+
/* Get buffer size. */
if (sysctl (mib, MIBSIZ, NULL, &bufsiz, NULL, 0) < 0)
{