diff options
author | David Lamparter <equinox@opensourcerouting.org> | 2016-11-14 01:56:02 +0100 |
---|---|---|
committer | David Lamparter <equinox@opensourcerouting.org> | 2017-03-08 00:15:39 +0100 |
commit | 16077f2fc5f4d73648b4ebef877e1f021864358d (patch) | |
tree | 73d9eb31cab0943147924a5d93c938021682df36 /nhrpd/nhrp_main.c | |
parent | *: add frr_config_fork() (diff) | |
download | frr-16077f2fc5f4d73648b4ebef877e1f021864358d.tar.xz frr-16077f2fc5f4d73648b4ebef877e1f021864358d.zip |
*: add frr_run()
Contains the fetch-and-run-thread logic, and vty startup (which is the
last thing happening before entering the main loop).
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'nhrpd/nhrp_main.c')
-rw-r--r-- | nhrpd/nhrp_main.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/nhrpd/nhrp_main.c b/nhrpd/nhrp_main.c index e1192205e..963399985 100644 --- a/nhrpd/nhrp_main.c +++ b/nhrpd/nhrp_main.c @@ -123,8 +123,6 @@ FRR_DAEMON_INFO(nhrpd, NHRP, int main(int argc, char **argv) { - struct thread thread; - frr_preinit(&nhrpd_di, argc, argv); frr_opt_add("", longopts, ""); @@ -151,14 +149,6 @@ int main(int argc, char **argv) nhrp_config_init(); frr_config_fork(); - - /* Create VTY socket */ - frr_vty_serv(); - zlog_notice("nhrpd starting: vty@%d", nhrpd_di.vty_port); - - /* Main loop */ - while (thread_fetch(master, &thread)) - thread_call(&thread); - + frr_run(master); return 0; } |