]> git.puffer.fish Git - mirror/frr.git/commitdiff
Only suppress adding a connected route to the kernel if it is
authorDavid Young <dyoung@pobox.com>
Mon, 16 Apr 2007 05:54:02 +0000 (05:54 +0000)
committerDavid Young <dyoung@pobox.com>
Mon, 16 Apr 2007 05:54:02 +0000 (05:54 +0000)
already marked "real" (ZEBRA_IFC_REAL), i.e., "in kernel." According
to Paul Jakma, this probably fixes Quagga bug #202.

zebra/connected.c

index 3fe9717d4f31c7455081fb5862dde28f2a81774d..74e10ac681b26983f3c177a2a237a1c76fcef27a 100644 (file)
@@ -155,7 +155,7 @@ connected_implicit_withdraw (struct interface *ifp, struct connected *ifc)
       /* Avoid spurious withdraws, this might be just the kernel 'reflecting'
        * back an address we have already added.
        */
-      if (connected_same (current, ifc))
+      if (connected_same (current, ifc) && CHECK_FLAG(current->conf, ZEBRA_IFC_REAL))
         {
           /* nothing to do */
           connected_free (ifc);