summaryrefslogtreecommitdiffstats
path: root/conf/conf.h
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>2000-03-12 23:44:54 +0100
committerMartin Mares <mj@ucw.cz>2000-03-12 23:44:54 +0100
commit432709027680d7791b325b2c2116c658eba21c8d (patch)
tree77f9d0f9591dea5e8fc4261f24b15191df7f68a0 /conf/conf.h
parent7a88832e78cbc18db109c091d74f6d27284cff44 (diff)
downloadbird-432709027680d7791b325b2c2116c658eba21c8d.tar
bird-432709027680d7791b325b2c2116c658eba21c8d.zip
Made `show status' show uptime and time of last reconfiguration.
Diffstat (limited to 'conf/conf.h')
-rw-r--r--conf/conf.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/conf/conf.h b/conf/conf.h
index 78ab04a..5abca7d 100644
--- a/conf/conf.h
+++ b/conf/conf.h
@@ -10,6 +10,7 @@
#define _BIRD_CONF_H_
#include "lib/resource.h"
+#include "lib/timer.h"
/* Configuration structure */
@@ -29,6 +30,7 @@ struct config {
struct symbol **sym_fallback; /* Lexer: fallback symbol hash table */
int obstacle_count; /* Number of items blocking freeing of this config */
int shutdown; /* This is a pseudo-config for daemon shutdown */
+ bird_clock_t load_time; /* When we've got this configuration */
};
/* Please don't use these variables in protocols. Use proto_config->global instead. */
@@ -38,6 +40,7 @@ extern struct config *old_config; /* Old configuration when reconfiguration is i
extern struct config *future_config; /* New config held here if recon requested during recon */
extern int shutting_down;
+extern bird_clock_t boot_time;
struct config *config_alloc(byte *name);
int config_parse(struct config *);