mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-15 08:57:29 +00:00
ldpd: use frr_init()
Without this, modules aren't loaded. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
This commit is contained in:
parent
5662e2c91c
commit
16156c1018
18
ldpd/ldpd.c
18
ldpd/ldpd.c
@ -277,9 +277,9 @@ main(int argc, char *argv[])
|
|||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
openzlog(ldpd_di.progname, "LDP", 0,
|
if (lflag || eflag)
|
||||||
LOG_CONS | LOG_NDELAY | LOG_PID, LOG_DAEMON);
|
openzlog(ldpd_di.progname, "LDP", 0,
|
||||||
|
LOG_CONS | LOG_NDELAY | LOG_PID, LOG_DAEMON);
|
||||||
if (lflag)
|
if (lflag)
|
||||||
lde();
|
lde();
|
||||||
else if (eflag)
|
else if (eflag)
|
||||||
@ -316,19 +316,9 @@ main(int argc, char *argv[])
|
|||||||
ldpe_pid = start_child(PROC_LDP_ENGINE, saved_argv0,
|
ldpe_pid = start_child(PROC_LDP_ENGINE, saved_argv0,
|
||||||
pipe_parent2ldpe[1], pipe_parent2ldpe_sync[1]);
|
pipe_parent2ldpe[1], pipe_parent2ldpe_sync[1]);
|
||||||
|
|
||||||
/* drop privileges */
|
master = frr_init();
|
||||||
zprivs_init(&ldpd_privs);
|
|
||||||
|
|
||||||
/* setup signal handler */
|
|
||||||
signal_init(master, array_size(ldp_signals), ldp_signals);
|
|
||||||
|
|
||||||
/* thread master */
|
|
||||||
master = thread_master_create();
|
|
||||||
|
|
||||||
/* library inits */
|
|
||||||
cmd_init(1);
|
|
||||||
vty_config_lockless();
|
vty_config_lockless();
|
||||||
vty_init(master);
|
|
||||||
vrf_init(NULL, NULL, NULL, NULL);
|
vrf_init(NULL, NULL, NULL, NULL);
|
||||||
access_list_init();
|
access_list_init();
|
||||||
ldp_vty_init();
|
ldp_vty_init();
|
||||||
|
Loading…
Reference in New Issue
Block a user