Diff for /embedaddon/quagga/zebra/redistribute.c between versions 1.1.1.2 and 1.1.1.3

version 1.1.1.2, 2012/10/09 09:22:29 version 1.1.1.3, 2013/07/21 23:54:41
Line 107  zebra_redistribute_default (struct zserv *client) Line 107  zebra_redistribute_default (struct zserv *client)
       rn = route_node_lookup (table, (struct prefix *)&p);        rn = route_node_lookup (table, (struct prefix *)&p);
       if (rn)        if (rn)
         {          {
          for (newrib = rn->info; newrib; newrib = newrib->next)          RNODE_FOREACH_RIB (rn, newrib)
             if (CHECK_FLAG (newrib->flags, ZEBRA_FLAG_SELECTED)              if (CHECK_FLAG (newrib->flags, ZEBRA_FLAG_SELECTED)
                 && newrib->distance != DISTANCE_INFINITY)                  && newrib->distance != DISTANCE_INFINITY)
               zsend_route_multipath (ZEBRA_IPV4_ROUTE_ADD, client, &rn->p, newrib);                zsend_route_multipath (ZEBRA_IPV4_ROUTE_ADD, client, &rn->p, newrib);
Line 127  zebra_redistribute_default (struct zserv *client) Line 127  zebra_redistribute_default (struct zserv *client)
       rn = route_node_lookup (table, (struct prefix *)&p6);        rn = route_node_lookup (table, (struct prefix *)&p6);
       if (rn)        if (rn)
         {          {
          for (newrib = rn->info; newrib; newrib = newrib->next)          RNODE_FOREACH_RIB (rn, newrib)
             if (CHECK_FLAG (newrib->flags, ZEBRA_FLAG_SELECTED)              if (CHECK_FLAG (newrib->flags, ZEBRA_FLAG_SELECTED)
                 && newrib->distance != DISTANCE_INFINITY)                  && newrib->distance != DISTANCE_INFINITY)
               zsend_route_multipath (ZEBRA_IPV6_ROUTE_ADD, client, &rn->p, newrib);                zsend_route_multipath (ZEBRA_IPV6_ROUTE_ADD, client, &rn->p, newrib);
Line 148  zebra_redistribute (struct zserv *client, int type) Line 148  zebra_redistribute (struct zserv *client, int type)
   table = vrf_table (AFI_IP, SAFI_UNICAST, 0);    table = vrf_table (AFI_IP, SAFI_UNICAST, 0);
   if (table)    if (table)
     for (rn = route_top (table); rn; rn = route_next (rn))      for (rn = route_top (table); rn; rn = route_next (rn))
      for (newrib = rn->info; newrib; newrib = newrib->next)      RNODE_FOREACH_RIB (rn, newrib)
         if (CHECK_FLAG (newrib->flags, ZEBRA_FLAG_SELECTED)           if (CHECK_FLAG (newrib->flags, ZEBRA_FLAG_SELECTED) 
             && newrib->type == type               && newrib->type == type 
             && newrib->distance != DISTANCE_INFINITY              && newrib->distance != DISTANCE_INFINITY
Line 159  zebra_redistribute (struct zserv *client, int type) Line 159  zebra_redistribute (struct zserv *client, int type)
   table = vrf_table (AFI_IP6, SAFI_UNICAST, 0);    table = vrf_table (AFI_IP6, SAFI_UNICAST, 0);
   if (table)    if (table)
     for (rn = route_top (table); rn; rn = route_next (rn))      for (rn = route_top (table); rn; rn = route_next (rn))
      for (newrib = rn->info; newrib; newrib = newrib->next)      RNODE_FOREACH_RIB (rn, newrib)
         if (CHECK_FLAG (newrib->flags, ZEBRA_FLAG_SELECTED)          if (CHECK_FLAG (newrib->flags, ZEBRA_FLAG_SELECTED)
             && newrib->type == type               && newrib->type == type 
             && newrib->distance != DISTANCE_INFINITY              && newrib->distance != DISTANCE_INFINITY

Removed from v.1.1.1.2  
changed lines
  Added in v.1.1.1.3


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>