From 682d3f7de0905ca2e853844734cce7ff65f7d77d Mon Sep 17 00:00:00 2001 From: "Ondrej Zajicek (work)" Date: Thu, 27 Sep 2018 22:57:55 +0200 Subject: BGP: implement Adj-RIB-In The patch implements optional internal import table to a channel and hooks it to BGP so it can be used as Adj-RIB-In. When enabled, all received (pre-filtered) routes are stored there and import filters can be re-evaluated without explicit route refresh. An import table can be examined using e.g. 'show route import table bgp1.ipv4'. --- nest/route.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'nest/route.h') diff --git a/nest/route.h b/nest/route.h index 2600f087..7a683f9e 100644 --- a/nest/route.h +++ b/nest/route.h @@ -311,8 +311,13 @@ void rt_dump(rtable *); void rt_dump_all(void); int rt_feed_channel(struct channel *c); void rt_feed_channel_abort(struct channel *c); +int rte_update_in(struct channel *c, const net_addr *n, rte *new, struct rte_src *src); +int rt_reload_channel(struct channel *c); +void rt_reload_channel_abort(struct channel *c); +void rt_prune_sync(rtable *t, int all); struct rtable_config *rt_new_table(struct symbol *s, uint addr_type); + /* Default limit for ECMP next hops, defined in sysdep code */ extern const int rt_default_ecmp; -- cgit v1.2.3