summaryrefslogtreecommitdiff
path: root/ldpd/ldpd.h
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2017-03-22 12:53:36 -0300
committerRenato Westphal <renato@opensourcerouting.org>2017-03-27 14:54:57 -0300
commitdbce358222e5483140389795f790cfabd93808e1 (patch)
tree7bf48db061e0e8fb78228e189a011c48b46c028d /ldpd/ldpd.h
parent1e7e440f5a5555b286e9b6265e9e481d11123fcd (diff)
ldpd: do a full configuration reload upon receiving a SIGHUP
The rationale here is to do something very similar to what the original OpenBSD's ldpd(8) does to reload configuration files: * create a new empty base configuration (vty_conf); * parse the configuration file and store the result in vty_conf; * merge the new configuration into the current configuration. To do this, introduce a new global variable called "sighup" so that ldpd doesn't attempt to merge vty_conf into ldpd_conf for each command in the configuration file, which would be very disruptive. vty_conf should be merged only after the whole configuration file is parsed in order to avoid taking actions like shutting down neighbors when not necessary. Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'ldpd/ldpd.h')
-rw-r--r--ldpd/ldpd.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/ldpd/ldpd.h b/ldpd/ldpd.h
index 69235556f8..a0474a5a2d 100644
--- a/ldpd/ldpd.h
+++ b/ldpd/ldpd.h
@@ -503,6 +503,7 @@ struct ldpd_af_global {
struct ldpd_global {
int cmd_opts;
+ int sighup;
time_t uptime;
struct in_addr rtr_id;
struct ldpd_af_global ipv4;