]> git.puffer.fish Git - mirror/frr.git/commitdiff
bgpd: IPv6 MP-BGP Routes addition and deletion
authorG.Balaji <balajig81@gmail.com>
Sat, 26 Nov 2011 18:04:05 +0000 (22:04 +0400)
committerDenis Ovsienko <infrastation@yandex.ru>
Mon, 23 Jan 2012 10:30:50 +0000 (14:30 +0400)
This patch contains the following:
1. Addition of IPv6 SAFI_MULTICAST BGP routes into the BGP Multicast RIB.
2. Deletion of IPv6 SAFI_MULTICAST BGP routes from the BGP Multicast RIB.

bgpd/bgp_zebra.c
lib/zclient.c
lib/zclient.h

index baf76fb052d84050d4faf53f0687ab0d3ae88fa1..20feba0f49830119b671a4183eac8f7308864328 100644 (file)
@@ -753,6 +753,7 @@ bgp_zebra_announce (struct prefix *p, struct bgp_info *info, struct bgp *bgp, sa
       api.flags = flags;
       api.type = ZEBRA_ROUTE_BGP;
       api.message = 0;
+      api.safi = safi;
       SET_FLAG (api.message, ZAPI_MESSAGE_NEXTHOP);
       api.nexthop_num = 1;
       api.nexthop = &nexthop;
@@ -869,6 +870,7 @@ bgp_zebra_withdraw (struct prefix *p, struct bgp_info *info, safi_t safi)
       api.flags = flags;
       api.type = ZEBRA_ROUTE_BGP;
       api.message = 0;
+      api.safi = safi;
       SET_FLAG (api.message, ZAPI_MESSAGE_NEXTHOP);
       api.nexthop_num = 1;
       api.nexthop = &nexthop;
index 0c3461e71b9f20948cd68fabcf7e2162c967e4be..3521d99eee55693990bd922623f6a60fb0a654f2 100644 (file)
@@ -538,6 +538,7 @@ zapi_ipv6_route (u_char cmd, struct zclient *zclient, struct prefix_ipv6 *p,
   stream_putc (s, api->type);
   stream_putc (s, api->flags);
   stream_putc (s, api->message);
+  stream_putw (s, api->safi);
   
   /* Put prefix information. */
   psize = PSIZE (p->prefixlen);
index 8b3e71af89c87607bb9e3c4d2d52f772573269b6..73389ecd803f7a47361e8a38849f2709cced5fe5 100644 (file)
@@ -167,6 +167,8 @@ struct zapi_ipv6
 
   u_char message;
 
+  safi_t safi;
+
   u_char nexthop_num;
   struct in6_addr **nexthop;