|
|
| version 1.1, 2012/02/21 17:26:11 | version 1.1.1.2, 2016/11/02 10:09:10 |
|---|---|
| Line 24 | Line 24 |
| #include "memory.h" | #include "memory.h" |
| #include "log.h" | #include "log.h" |
| #include "vrf.h" | |
| #include "zebra/zserv.h" | #include "zebra/zserv.h" |
| #include "zebra/rt.h" | #include "zebra/rt.h" |
| Line 31 | Line 32 |
| /* Kernel routing table read up by sysctl function. */ | /* Kernel routing table read up by sysctl function. */ |
| void | void |
| route_read (void) | route_read (struct zebra_vrf *zvrf) |
| { | { |
| caddr_t buf, end, ref; | caddr_t buf, end, ref; |
| size_t bufsiz; | size_t bufsiz; |
| Line 47 route_read (void) | Line 48 route_read (void) |
| NET_RT_DUMP, | NET_RT_DUMP, |
| 0 | 0 |
| }; | }; |
| if (zvrf->vrf_id != VRF_DEFAULT) | |
| return; | |
| /* Get buffer size. */ | /* Get buffer size. */ |
| if (sysctl (mib, MIBSIZ, NULL, &bufsiz, NULL, 0) < 0) | if (sysctl (mib, MIBSIZ, NULL, &bufsiz, NULL, 0) < 0) |
| { | { |