mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-06-15 13:30:21 +00:00
bgpd: IPv6 MP-BGP Routes addition and deletion
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.
This commit is contained in:
parent
cddf391bf6
commit
c7ec179a95
@ -753,6 +753,7 @@ bgp_zebra_announce (struct prefix *p, struct bgp_info *info, struct bgp *bgp, sa
|
|||||||
api.flags = flags;
|
api.flags = flags;
|
||||||
api.type = ZEBRA_ROUTE_BGP;
|
api.type = ZEBRA_ROUTE_BGP;
|
||||||
api.message = 0;
|
api.message = 0;
|
||||||
|
api.safi = safi;
|
||||||
SET_FLAG (api.message, ZAPI_MESSAGE_NEXTHOP);
|
SET_FLAG (api.message, ZAPI_MESSAGE_NEXTHOP);
|
||||||
api.nexthop_num = 1;
|
api.nexthop_num = 1;
|
||||||
api.nexthop = &nexthop;
|
api.nexthop = &nexthop;
|
||||||
@ -869,6 +870,7 @@ bgp_zebra_withdraw (struct prefix *p, struct bgp_info *info, safi_t safi)
|
|||||||
api.flags = flags;
|
api.flags = flags;
|
||||||
api.type = ZEBRA_ROUTE_BGP;
|
api.type = ZEBRA_ROUTE_BGP;
|
||||||
api.message = 0;
|
api.message = 0;
|
||||||
|
api.safi = safi;
|
||||||
SET_FLAG (api.message, ZAPI_MESSAGE_NEXTHOP);
|
SET_FLAG (api.message, ZAPI_MESSAGE_NEXTHOP);
|
||||||
api.nexthop_num = 1;
|
api.nexthop_num = 1;
|
||||||
api.nexthop = &nexthop;
|
api.nexthop = &nexthop;
|
||||||
|
@ -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->type);
|
||||||
stream_putc (s, api->flags);
|
stream_putc (s, api->flags);
|
||||||
stream_putc (s, api->message);
|
stream_putc (s, api->message);
|
||||||
|
stream_putw (s, api->safi);
|
||||||
|
|
||||||
/* Put prefix information. */
|
/* Put prefix information. */
|
||||||
psize = PSIZE (p->prefixlen);
|
psize = PSIZE (p->prefixlen);
|
||||||
|
@ -167,6 +167,8 @@ struct zapi_ipv6
|
|||||||
|
|
||||||
u_char message;
|
u_char message;
|
||||||
|
|
||||||
|
safi_t safi;
|
||||||
|
|
||||||
u_char nexthop_num;
|
u_char nexthop_num;
|
||||||
struct in6_addr **nexthop;
|
struct in6_addr **nexthop;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user