summaryrefslogtreecommitdiffstats
path: root/eigrpd/eigrp_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'eigrpd/eigrp_main.c')
-rw-r--r--eigrpd/eigrp_main.c18
1 files changed, 12 insertions, 6 deletions
diff --git a/eigrpd/eigrp_main.c b/eigrpd/eigrp_main.c
index 6d7443b..552ba7c 100644
--- a/eigrpd/eigrp_main.c
+++ b/eigrpd/eigrp_main.c
@@ -96,6 +96,8 @@ static void sigint(void)
zlog_notice("Terminating on signal");
eigrp_terminate();
+ keychain_terminate();
+
exit(0);
}
@@ -132,16 +134,20 @@ static const struct frr_yang_module_info *const eigrpd_yang_modules[] = {
&frr_vrf_info,
};
-FRR_DAEMON_INFO(eigrpd, EIGRP, .vty_port = EIGRP_VTY_PORT,
+/* clang-format off */
+FRR_DAEMON_INFO(eigrpd, EIGRP,
+ .vty_port = EIGRP_VTY_PORT,
+ .proghelp = "Implementation of the EIGRP routing protocol.",
- .proghelp = "Implementation of the EIGRP routing protocol.",
+ .signals = eigrp_signals,
+ .n_signals = array_size(eigrp_signals),
- .signals = eigrp_signals,
- .n_signals = array_size(eigrp_signals),
+ .privs = &eigrpd_privs,
- .privs = &eigrpd_privs, .yang_modules = eigrpd_yang_modules,
- .n_yang_modules = array_size(eigrpd_yang_modules),
+ .yang_modules = eigrpd_yang_modules,
+ .n_yang_modules = array_size(eigrpd_yang_modules),
);
+/* clang-format on */
/* EIGRPd main routine. */
int main(int argc, char **argv, char **envp)