diff options
author | Calin Velea <vcalinus@gemenii.ro> | 2007-04-09 15:29:51 -0500 |
---|---|---|
committer | Jeffrey C. Ollie <jeff@ocjtech.us> | 2007-04-09 15:29:51 -0500 |
commit | 8d3e3ccfd0d0cb82b253f937339d1c6189a2bf54 (patch) | |
tree | b8bc9ff4aad0c8e7933e91895f6f3cf7d93f8e24 /bgpd/bgp_zebra.c | |
parent | c15deb1b7428a2baedfb615b1a41fe28d48c598c (diff) | |
download | quagga-8d3e3ccfd0d0cb82b253f937339d1c6189a2bf54.tar.bz2 quagga-8d3e3ccfd0d0cb82b253f937339d1c6189a2bf54.tar.xz |
Appying patch from http://vcalinus.gemenii.ro/quagga-0.99.5-realms.diffquagga-0.99.5-realms.diff
Diffstat (limited to 'bgpd/bgp_zebra.c')
-rw-r--r-- | bgpd/bgp_zebra.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/bgpd/bgp_zebra.c b/bgpd/bgp_zebra.c index 0cb9e0e2..a25297ab 100644 --- a/bgpd/bgp_zebra.c +++ b/bgpd/bgp_zebra.c @@ -640,6 +640,15 @@ bgp_zebra_announce (struct prefix *p, struct bgp_info *info, struct bgp *bgp) SET_FLAG (api.message, ZAPI_MESSAGE_DISTANCE); api.distance = distance; } + +#ifdef SUPPORT_REALMS + if (info->attr->realmto) + { + SET_FLAG (api.message, ZAPI_MESSAGE_REALMTO); + api.realmto = info->attr->realmto; + } +#endif + zapi_ipv4_route (ZEBRA_IPV4_ROUTE_ADD, zclient, (struct prefix_ipv4 *) p, &api); } |