]> git.puffer.fish Git - mirror/frr.git/commitdiff
zebra: check ZEBRA_IFC_REAL on if_up
authorChristian Franke <nobody@nowhere.ws>
Mon, 7 Nov 2016 12:37:25 +0000 (13:37 +0100)
committerDavid Lamparter <equinox@opensourcerouting.org>
Thu, 1 Dec 2016 15:38:36 +0000 (16:38 +0100)
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>
zebra/interface.c

index b87f61f920f53751e5c23f0427710c00a785bba0..68edd30de3b65ec9396cf5a14eaf46275307d90d 100644 (file)
@@ -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)