summaryrefslogtreecommitdiff
path: root/ripngd/ripng_main.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2016-11-14 09:56:02 +0900
committerDavid Lamparter <equinox@opensourcerouting.org>2017-03-08 00:15:39 +0100
commit16077f2fc5f4d73648b4ebef877e1f021864358d (patch)
tree73d9eb31cab0943147924a5d93c938021682df36 /ripngd/ripng_main.c
parenteb05883f3ecd94be017eb7d15181a989f26541ee (diff)
*: 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 'ripngd/ripng_main.c')
-rw-r--r--ripngd/ripng_main.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/ripngd/ripng_main.c b/ripngd/ripng_main.c
index e63b1ea294..c24ca28c36 100644
--- a/ripngd/ripng_main.c
+++ b/ripngd/ripng_main.c
@@ -149,8 +149,6 @@ FRR_DAEMON_INFO(ripngd, RIPNG,
int
main (int argc, char **argv)
{
- struct thread thread;
-
frr_preinit (&ripngd_di, argc, argv);
frr_opt_add ("r", longopts,
" -r, --retain When program terminates, retain added route by ripd.\n");
@@ -188,16 +186,7 @@ main (int argc, char **argv)
ripng_peer_init ();
frr_config_fork ();
-
- /* Create VTY socket */
- frr_vty_serv ();
-
- /* Print banner. */
- zlog_notice ("RIPNGd %s starting: vty@%d", FRR_VERSION, ripngd_di.vty_port);
-
- /* Fetch next active thread. */
- while (thread_fetch (master, &thread))
- thread_call (&thread);
+ frr_run (master);
/* Not reached. */
return 0;