summaryrefslogtreecommitdiff
path: root/zebra/if_ioctl.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2015-10-30 05:52:29 -0700
committerDonald Sharp <sharpd@cumulusnetworks.com>2015-10-30 05:52:29 -0700
commitbe5e48abecd137b47e4493a8fd616186c61f48f7 (patch)
tree4184faeca4bb606af98deb606d9b53db3ac314b4 /zebra/if_ioctl.c
parent526e17284570266dcdd606ff163a614e6b3655a5 (diff)
parent2bed4e86e378334341e01f3afe33784ef2713e83 (diff)
Merge branch 'cmaster' of ssh://stash.cumulusnetworks.com:7999/quag/quagga into cmaster
Conflicts: zebra/rib.h zebra/zebra_rib.c zebra/zebra_vty.c
Diffstat (limited to 'zebra/if_ioctl.c')
-rw-r--r--zebra/if_ioctl.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/zebra/if_ioctl.c b/zebra/if_ioctl.c
index f357e15447..8df877dbaa 100644
--- a/zebra/if_ioctl.c
+++ b/zebra/if_ioctl.c
@@ -29,8 +29,10 @@
#include "connected.h"
#include "memory.h"
#include "log.h"
+#include "vrf.h"
#include "zebra/interface.h"
+#include "zebra/rib.h"
/* Interface looking up using infamous SIOCGIFCONF. */
static int
@@ -442,8 +444,13 @@ interface_info_ioctl ()
/* Lookup all interface information. */
void
-interface_list ()
+interface_list (struct zebra_vrf *zvrf)
{
+ if (zvrf->vrf_id != VRF_DEFAULT)
+ {
+ zlog_warn ("interface_list: ignore VRF %u", zvrf->vrf_id);
+ return;
+ }
/* Linux can do both proc & ioctl, ioctl is the only way to get
interface aliases in 2.2 series kernels. */
#ifdef HAVE_PROC_NET_DEV