summaryrefslogtreecommitdiff
path: root/zebra/if_sysctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'zebra/if_sysctl.c')
-rw-r--r--zebra/if_sysctl.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/zebra/if_sysctl.c b/zebra/if_sysctl.c
index 1150ec1b06..e7b25d1f8f 100644
--- a/zebra/if_sysctl.c
+++ b/zebra/if_sysctl.c
@@ -29,9 +29,15 @@
#include "memory.h"
#include "ioctl.h"
#include "log.h"
+<<<<<<< HEAD
+=======
+#include "interface.h"
+#include "vrf.h"
+>>>>>>> 3c27b5f... zebra, lib/memtypes.c: the netlink sockets work per VRF
#include "zebra/rt.h"
#include "zebra/kernel_socket.h"
+#include "zebra/rib.h"
void
ifstat_update_sysctl (void)
@@ -90,7 +96,7 @@ ifstat_update_sysctl (void)
/* Interface listing up function using sysctl(). */
void
-interface_list ()
+interface_list (struct zebra_vrf *zvrf)
{
caddr_t ref, buf, end;
size_t bufsiz;
@@ -107,6 +113,12 @@ interface_list ()
0
};
+ if (zvrf->vrf_id != VRF_DEFAULT)
+ {
+ zlog_warn ("interface_list: ignore VRF %u", zvrf->vrf_id);
+ return;
+ }
+
/* Query buffer size. */
if (sysctl (mib, MIBSIZ, NULL, &bufsiz, NULL, 0) < 0)
{