diff options
author | Renato Westphal <renato@opensourcerouting.org> | 2017-08-21 03:10:50 +0200 |
---|---|---|
committer | Renato Westphal <renato@opensourcerouting.org> | 2017-08-24 01:25:45 +0200 |
commit | 744899219f4214398a3078874a341000a372e29d (patch) | |
tree | b33edf26332d87c734bb68f19efb3b4d37fd5a4f /bgpd/bgp_route.h | |
parent | bgpd: unify ipv4/ipv6 zebra-tx functions (diff) | |
download | frr-744899219f4214398a3078874a341000a372e29d.tar.xz frr-744899219f4214398a3078874a341000a372e29d.zip |
*: use zapi_route to send/receive redistributed routes as well
Some differences compared to the old API:
* Now the redistributed routes are sent using address-family
independent messages (ZEBRA_REDISTRIBUTE_ROUTE_ADD and
ZEBRA_REDISTRIBUTE_ROUTE_DEL). This allows us to unify the ipv4/ipv6
zclient callbacks in the client daemons and thus remove a lot of
duplicate code;
* Now zebra sends all nexthops of the redistributed routes to the client
daemons, not only the first one. This shouldn't have any noticeable
performance implications and will allow us to remove an ugly exception
we had for ldpd (which needs to know all nexthops of the redistributed
routes). The other client daemons can simply ignore the nexthops if
they want or consult just the first one (e.g. ospfd/ospf6d/ripd/ripngd).
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'bgpd/bgp_route.h')
-rw-r--r-- | bgpd/bgp_route.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bgpd/bgp_route.h b/bgpd/bgp_route.h index 1a1817bad..55f812d4a 100644 --- a/bgpd/bgp_route.h +++ b/bgpd/bgp_route.h @@ -22,6 +22,7 @@ #define _QUAGGA_BGP_ROUTE_H #include "queue.h" +#include "nexthop.h" #include "bgp_table.h" struct bgp_nexthop_cache; @@ -326,8 +327,7 @@ extern int bgp_nlri_parse_ip(struct peer *, struct attr *, struct bgp_nlri *); extern int bgp_maximum_prefix_overflow(struct peer *, afi_t, safi_t, int); extern void bgp_redistribute_add(struct bgp *, struct prefix *, - const struct in_addr *, - const struct in6_addr *, unsigned int ifindex, + const union g_addr *, unsigned int ifindex, u_int32_t, u_char, u_short, route_tag_t); extern void bgp_redistribute_delete(struct bgp *, struct prefix *, u_char, u_short); |