From aa86a160f4c1cc068c547f4e9f7df5003b532454 Mon Sep 17 00:00:00 2001 From: Christian Franke Date: Mon, 7 Nov 2016 13:37:25 +0100 Subject: [PATCH] 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 Signed-off-by: David Lamparter --- zebra/interface.c | 5 +++-- 1 file 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) -- 2.39.5