From: Maria Matejka Date: Wed, 9 Mar 2022 09:50:38 +0000 (+0100) Subject: Merge commit 'd5a32563' into haugesund X-Git-Tag: v2.0.11~64 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ff47cd80dd04bc11692248a40cbf52ee8d351064;p=thirdparty%2Fbird.git Merge commit 'd5a32563' into haugesund --- ff47cd80dd04bc11692248a40cbf52ee8d351064 diff --cc nest/route.h index 7930058a4,227a5f5e1..75890a71a --- a/nest/route.h +++ b/nest/route.h @@@ -378,21 -353,9 +378,21 @@@ int rte_update_in(struct channel *c, co int rt_reload_channel(struct channel *c); void rt_reload_channel_abort(struct channel *c); void rt_prune_sync(rtable *t, int all); - int rte_update_out(struct channel *c, const net_addr *n, rte *new, rte *old0, int refeed); + int rte_update_out(struct channel *c, const net_addr *n, rte *new, rte *old, rte **old_exported, int refeed); struct rtable_config *rt_new_table(struct symbol *s, uint addr_type); +static inline int rt_is_ip(rtable *tab) +{ return (tab->addr_type == NET_IP4) || (tab->addr_type == NET_IP6); } + +static inline int rt_is_vpn(rtable *tab) +{ return (tab->addr_type == NET_VPN4) || (tab->addr_type == NET_VPN6); } + +static inline int rt_is_roa(rtable *tab) +{ return (tab->addr_type == NET_ROA4) || (tab->addr_type == NET_ROA6); } + +static inline int rt_is_flow(rtable *tab) +{ return (tab->addr_type == NET_FLOW4) || (tab->addr_type == NET_FLOW6); } + /* Default limit for ECMP next hops, defined in sysdep code */ extern const int rt_default_ecmp;