- int opt;
-
- frr_preinit (&ospf6d_di, argc, argv);
- frr_opt_add ("", longopts, "");
-
- /* Command line argument treatment. */
- while (1)
- {
- opt = frr_getopt (argc, argv, NULL);
-
- if (opt == EOF)
- break;
-
- switch (opt)
- {
- case 0:
- break;
- default:
- frr_help_exit (1);
- break;
- }
- }
-
- if (geteuid () != 0)
- {
- errno = EPERM;
- perror (ospf6d_di.progname);
- exit (1);
- }
-
- /* thread master */
- master = frr_init ();
-
- vrf_init (NULL, NULL, NULL, NULL);
- access_list_init ();
- prefix_list_init ();
-
- /* initialize ospf6 */
- ospf6_init ();
-
- frr_config_fork ();
- frr_run (master);
-
- /* Not reached. */
- ospf6_exit (0);
-}