the user forces it in the config file.
- &&,||: priorities
- client: `?' in BGP masks
- filters: function for BGP path length
+- static: allow specifying a per-route filter program for setting route attributes?
Globals
~~~~~~~
Various ideas
~~~~~~~~~~~~~
-- static: allow specifying a per-route filter program for setting route attributes?
- client: paging of output
- client: Ctrl-R eats one more enter
- bgp: timing of updates?
}
void
-log_switch(list *l)
+log_switch(int debug, list *l)
{
if (EMPTY_LIST(*l))
- log_init(0, 0);
+ log_init(debug, 0);
else
current_log_list = l;
}
* Debugging
*/
+#ifdef DEBUGGING
+static int debug_flag = 1;
+#else
+static int debug_flag = 0;
+#endif
+
void
async_dump(void)
{
int
sysdep_commit(struct config *new, struct config *old)
{
- log_switch(&new->logfiles);
+ log_switch(debug_flag, &new->logfiles);
return 0;
}
static char *opt_list = "c:dD:s:";
-#ifdef DEBUGGING
-static int debug_flag = 1;
-#else
-static int debug_flag = 0;
-#endif
-
static void
usage(void)
{
void log_init(int debug, int init);
void log_init_debug(char *); /* Initialize debug dump to given file (NULL=stderr, ""=off) */
-void log_switch(struct list *);
+void log_switch(int debug, struct list *);
struct log_config {
node n;