diff options
| author | David Lamparter <equinox@opensourcerouting.org> | 2022-01-16 15:25:31 +0100 |
|---|---|---|
| committer | David Lamparter <equinox@opensourcerouting.org> | 2022-01-17 00:39:00 +0100 |
| commit | 603c61656fe2a758aae466a801baccbe63697f67 (patch) | |
| tree | fa37a8f62397b770968e36547924ac70d08c24ee /lib/libfrr.h | |
| parent | d948c317c579ad7674baf9b88a199e69cdb35933 (diff) | |
lib: add frr_early_init hook
To bring up bits that use thread_master before other init happens.
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'lib/libfrr.h')
| -rw-r--r-- | lib/libfrr.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libfrr.h b/lib/libfrr.h index e0642ef847..65c1df9675 100644 --- a/lib/libfrr.h +++ b/lib/libfrr.h @@ -144,6 +144,7 @@ extern uint32_t frr_get_fd_limit(void); extern bool frr_is_startup_fd(int fd); /* call order of these hooks is as ordered here */ +DECLARE_HOOK(frr_early_init, (struct thread_master * tm), (tm)); DECLARE_HOOK(frr_late_init, (struct thread_master * tm), (tm)); /* fork() happens between late_init and config_pre */ DECLARE_HOOK(frr_config_pre, (struct thread_master * tm), (tm)); |
