]> git.proxmox.com Git - mirror_frr.git/commitdiff
babeld: Cleanup some more compiler warnings
authorDonald Sharp <sharpd@cumulusnetworks.com>
Sun, 14 May 2017 02:52:15 +0000 (22:52 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Sun, 14 May 2017 02:52:15 +0000 (22:52 -0400)
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
babeld/babel_zebra.c
babeld/route.c

index bec37c4e2c9cbde9db14ec5a84e7259ed44ecc81..537158ec4e55cfd394db0c0a1dee5b64fe44a42f 100644 (file)
@@ -86,7 +86,7 @@ struct cmd_node zebra_node =
 /* Zebra route add and delete treatment (ipv6). */
 static int
 babel_zebra_read_ipv6 (int command, struct zclient *zclient,
-                      zebra_size_t length)
+                      zebra_size_t length, vrf_id_t vrf)
 {
     struct stream *s;
     struct zapi_ipv6 api;
@@ -138,7 +138,7 @@ babel_zebra_read_ipv6 (int command, struct zclient *zclient,
 
 static int
 babel_zebra_read_ipv4 (int command, struct zclient *zclient,
-                      zebra_size_t length)
+                      zebra_size_t length, vrf_id_t vrf)
 {
     struct stream *s;
     struct zapi_ipv4 api;
@@ -378,7 +378,7 @@ zebra_config_write (struct vty *vty)
         vty_out (vty, "no router zebra%s", VTY_NEWLINE);
         return 1;
     }
-    else if (! zclient->redist[ZEBRA_ROUTE_BABEL])
+    else if (! vrf_bitmap_check (zclient->redist[AFI_IP][ZEBRA_ROUTE_BABEL], VRF_DEFAULT))
     {
         vty_out (vty, "router zebra%s", VTY_NEWLINE);
         vty_out (vty, " no redistribute babel%s", VTY_NEWLINE);
index 1983c5eec040eb878c1c47ce5d078cd0133b042f..501dd1f4dfb143e33291c1bd41159d7f444c86c0 100644 (file)
@@ -997,7 +997,6 @@ retract_neighbour_routes(struct neighbour *neigh)
             }
             r = r->next;
         }
-        i++;
     }
 }