From cf31112f0d7618464097f71228f84bd534f1bc0f Mon Sep 17 00:00:00 2001 From: Ondrej Zajicek Date: Sun, 3 Jan 2010 12:17:52 +0100 Subject: Implements MRTdump feature. --- conf/conf.c | 1 + conf/conf.h | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'conf') diff --git a/conf/conf.c b/conf/conf.c index eeffd4a..7ffe8d1 100644 --- a/conf/conf.c +++ b/conf/conf.c @@ -75,6 +75,7 @@ config_alloc(byte *name) linpool *l = lp_new(p, 4080); struct config *c = lp_allocz(l, sizeof(struct config)); + c->mrtdump_file = -1; /* Hack, this should be sysdep-specific */ c->pool = p; cfg_mem = c->mem = l; c->file_name = cfg_strdup(name); diff --git a/conf/conf.h b/conf/conf.h index 951dde3..f8ab713 100644 --- a/conf/conf.h +++ b/conf/conf.h @@ -20,12 +20,15 @@ struct config { list protos; /* Configured protocol instances (struct proto_config) */ list tables; /* Configured routing tables (struct rtable_config) */ list logfiles; /* Configured log fils (sysdep) */ + int mrtdump_file; /* Configured MRTDump file (sysdep, fd in unix) */ struct rtable_config *master_rtc; /* Configuration of master routing table */ + u32 router_id; /* Our Router ID */ ip_addr listen_bgp_addr; /* Listening BGP socket should use this address */ unsigned listen_bgp_port; /* Listening BGP socket should use this port (0 is default) */ u32 listen_bgp_flags; /* Listening BGP socket should use these flags */ - unsigned int proto_default_debug; /* Default protocol debug mask */ + unsigned proto_default_debug; /* Default protocol debug mask */ + unsigned proto_default_mrtdump; /* Default protocol mrtdump mask */ int cli_debug; /* Tracing of CLI connections and commands */ char *err_msg; /* Parser error message */ int err_lino; /* Line containing error */ -- cgit v1.2.3