From c0fc3e67185c1e0ff2d083572c6ad3983ba4ef25 Mon Sep 17 00:00:00 2001 From: "Ondrej Zajicek (work)" Date: Tue, 18 Sep 2018 17:29:00 +0200 Subject: The MRT protocol The new MRT protocol is responsible for periodic RIB table dumps in the MRT format (RFC 6396). Also the existing code for BGP4MP MRT dumps is refactored and splitted between BGP to MRT protocols, will be more integrated into MRT in the future. Example: protocol mrt { table "*"; filename "%N_%F_%T.mrt"; period 60; } It is partially based on the old MRT code from Pavel Tvrdik. --- conf/conf.c | 2 +- conf/confbase.Y | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'conf') diff --git a/conf/conf.c b/conf/conf.c index f64932f5..4e6354b2 100644 --- a/conf/conf.c +++ b/conf/conf.c @@ -206,7 +206,7 @@ config_del_obstacle(struct config *c) { DBG("+++ deleting obstacle %d\n", c->obstacle_count); c->obstacle_count--; - if (!c->obstacle_count) + if (!c->obstacle_count && (c != config)) ev_schedule(config_event); } diff --git a/conf/confbase.Y b/conf/confbase.Y index b8deed54..3f3aef5d 100644 --- a/conf/confbase.Y +++ b/conf/confbase.Y @@ -55,6 +55,7 @@ CF_DECLS struct roa_show_data *ro; struct sym_show_data *sd; struct lsadb_show_data *ld; + struct mrt_dump_data *md; struct iface *iface; struct roa_table *rot; void *g; -- cgit v1.2.3