summaryrefslogtreecommitdiff
path: root/zebra/interface.c
diff options
context:
space:
mode:
authorChristian Franke <nobody@nowhere.ws>2016-11-07 13:37:25 +0100
committerDavid Lamparter <equinox@opensourcerouting.org>2016-12-01 16:38:36 +0100
commitaa86a160f4c1cc068c547f4e9f7df5003b532454 (patch)
tree90bce7670c32f9d3d166c4cea800a75be900e072 /zebra/interface.c
parentff999357fd95690c8105b9da24aa39a2b7ce51a6 (diff)
zebra: check ZEBRA_IFC_REAL on if_up
Only connected routes which have ZEBRA_IFC_REAL set should be redistributed. Signed-off-by: Christian Franke <nobody@nowhere.ws> Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'zebra/interface.c')
-rw-r--r--zebra/interface.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/zebra/interface.c b/zebra/interface.c
index b87f61f920..68edd30de3 100644
--- a/zebra/interface.c
+++ b/zebra/interface.c
@@ -512,9 +512,10 @@ if_install_connected (struct interface *ifp)
{
for (ALL_LIST_ELEMENTS (ifp->connected, node, next, ifc))
{
- p = ifc->address;
- zebra_interface_address_add_update (ifp, ifc);
+ if (CHECK_FLAG(ifc->conf, ZEBRA_IFC_REAL))
+ zebra_interface_address_add_update (ifp, ifc);
+ p = ifc->address;
if (p->family == AF_INET)
connected_up_ipv4 (ifp, ifc);
else if (p->family == AF_INET6)