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

version 1.1, 2012/02/21 17:26:11 version 1.1.1.2, 2012/10/09 09:22:29
Line 245  zebra_redistribute_add (int command, struct zserv *cli Line 245  zebra_redistribute_add (int command, struct zserv *cli
   
   type = stream_getc (client->ibuf);    type = stream_getc (client->ibuf);
   
  switch (type)  if (type == 0 || type >= ZEBRA_ROUTE_MAX)
     return;
 
   if (! client->redist[type])
     {      {
    case ZEBRA_ROUTE_KERNEL:      client->redist[type] = 1;
    case ZEBRA_ROUTE_CONNECT:      zebra_redistribute (client, type);
    case ZEBRA_ROUTE_STATIC: 
    case ZEBRA_ROUTE_RIP: 
    case ZEBRA_ROUTE_RIPNG: 
    case ZEBRA_ROUTE_OSPF: 
    case ZEBRA_ROUTE_OSPF6: 
    case ZEBRA_ROUTE_BGP: 
      if (! client->redist[type]) 
        { 
          client->redist[type] = 1; 
          zebra_redistribute (client, type); 
        } 
      break; 
    default: 
      break; 
     }      }
}     }
   
 void  void
 zebra_redistribute_delete (int command, struct zserv *client, int length)  zebra_redistribute_delete (int command, struct zserv *client, int length)
Line 273  zebra_redistribute_delete (int command, struct zserv * Line 262  zebra_redistribute_delete (int command, struct zserv *
   
   type = stream_getc (client->ibuf);    type = stream_getc (client->ibuf);
   
  switch (type)  if (type == 0 || type >= ZEBRA_ROUTE_MAX)
    {    return;
    case ZEBRA_ROUTE_KERNEL:
    case ZEBRA_ROUTE_CONNECT:  client->redist[type] = 0;
    case ZEBRA_ROUTE_STATIC:}
    case ZEBRA_ROUTE_RIP: 
    case ZEBRA_ROUTE_RIPNG: 
    case ZEBRA_ROUTE_OSPF: 
    case ZEBRA_ROUTE_OSPF6: 
    case ZEBRA_ROUTE_BGP: 
      client->redist[type] = 0; 
      break; 
    default: 
      break; 
    } 
}      
   
 void  void
 zebra_redistribute_default_add (int command, struct zserv *client, int length)  zebra_redistribute_default_add (int command, struct zserv *client, int length)

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


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