]> git.proxmox.com Git - mirror_frr.git/commitdiff
[zebra] Connected routes must always be added to main table
authorPaul Jakma <paul.jakma@sun.com>
Thu, 27 Jul 2006 16:11:02 +0000 (16:11 +0000)
committerPaul Jakma <paul.jakma@sun.com>
Thu, 27 Jul 2006 16:11:02 +0000 (16:11 +0000)
2006-07-27 Rumen Svobodnikov <rumen@telecoms.bg>

* connected.c: (connected_up_ipv4) interface connected routes always
  go to table main (or otherwise they cannot be used by linux as
          nexthops)
* zserv.c: (zread_ipv4_add) send route to the correct routing table
* zebra_rib.c (static_install_ipv4) set routing table

zebra/ChangeLog
zebra/connected.c
zebra/zebra_rib.c
zebra/zserv.c

index aae2015573f305b2e47430f5b24d11fa13b21dc2..36e717d91e4ccf7b39f2541cd96a95c301f95f1a 100644 (file)
@@ -1,3 +1,11 @@
+2006-07-27 Rumen Svobodnikov <rumen@telecoms.bg>
+
+       * connected.c: (connected_up_ipv4) interface connected routes always
+         go to table main (or otherwise they cannot be used by linux as
+          nexthops)
+       * zserv.c: (zread_ipv4_add) send route to the correct routing table
+       * zebra_rib.c (static_install_ipv4) set routing table
+
 2006-07-02 Paul Jakma <paul.jakma@sun.com>
 
        * rt_netlink.c: (netlink_interface_addr) Fix CID #104, can not
index 736b40b00da6798425225575ca1260bd69a54e1a..44002e76d1b84b16baeef014a99efb814e0eb933 100644 (file)
@@ -200,7 +200,7 @@ connected_up_ipv4 (struct interface *ifp, struct connected *ifc)
   if (prefix_ipv4_any (&p))
     return;
 
-  rib_add_ipv4 (ZEBRA_ROUTE_CONNECT, 0, &p, NULL, ifp->ifindex, 0
+  rib_add_ipv4 (ZEBRA_ROUTE_CONNECT, 0, &p, NULL, ifp->ifindex, RT_TABLE_MAIN
                 ifp->metric, 0);
 
   rib_update ();
index 9851cf443c648a368137e4e77cd435d05630b110..665e5673f288e278e187391faf6fd945d33a6355 100644 (file)
@@ -1482,6 +1482,7 @@ static_install_ipv4 (struct prefix *p, struct static_ipv4 *si)
       rib->distance = si->distance;
       rib->metric = 0;
       rib->nexthop_num = 0;
+      rib->table = zebrad.rtm_table_default;
 
       switch (si->type)
         {
index 5b38fc190f31111aeab113c1644fd3c61c45b956..1703d3f569258718906ea84371d721c200a2bcba 100644 (file)
@@ -801,6 +801,8 @@ zread_ipv4_add (struct zserv *client, u_short length)
   if (CHECK_FLAG (message, ZAPI_MESSAGE_METRIC))
     rib->metric = stream_getl (s);
     
+  /* Table */
+  rib->table=zebrad.rtm_table_default;
   rib_add_ipv4_multipath (&p, rib);
   return 0;
 }