diff options
| author | Christian Hopps <chopps@labn.net> | 2025-03-03 11:41:03 +0000 |
|---|---|---|
| committer | Christian Hopps <chopps@labn.net> | 2025-03-03 11:42:39 +0000 |
| commit | edad74e5bcb4c5d325fd958bb37b36110e77efde (patch) | |
| tree | fc50e08d8721003b9ac5ef5c9743929c66fb928b /rustbind/rustbin_init.c | |
| parent | fff9e3fbcb856b198a61a62e5f91ea08ee60b213 (diff) | |
rustbind: remove: rust binary based daemon skeleton code
Signed-off-by: Christian Hopps <chopps@labn.net>
Diffstat (limited to 'rustbind/rustbin_init.c')
| -rw-r--r-- | rustbind/rustbin_init.c | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/rustbind/rustbin_init.c b/rustbind/rustbin_init.c deleted file mode 100644 index fa1dc74e32..0000000000 --- a/rustbind/rustbin_init.c +++ /dev/null @@ -1,53 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0-or-later -/* - * September 9 2024, Christian Hopps <chopps@labn.net> - * - * Copyright (c) 2024, LabN Consulting, L.L.C. - */ - -#include <lib/libfrr.h> -#include <lib/zebra.h> -#include <lib/privs.h> -#include <lib/version.h> - -zebra_capabilities_t _caps_p[] = {ZCAP_NET_RAW, ZCAP_BIND, ZCAP_SYS_ADMIN}; - -struct zebra_privs_t rustbind_privs = { -#if defined(FRR_USER) - .user = FRR_USER, -#endif -#if defined FRR_GROUP - .group = FRR_GROUP, -#endif -#ifdef VTY_GROUP - .vty_group = VTY_GROUP, -#endif - .caps_p = _caps_p, - .cap_num_p = array_size(_caps_p), - .cap_num_i = 0 -}; - - -static const struct frr_yang_module_info *const rustbind_yang_modules[] = {}; - -/* clang-format off */ -FRR_DAEMON_INFO(rustbind, RUST, - .vty_port = RUSTBIND_VTY_PORT, - .proghelp = "Implementation of the RUST daemon template.", - - .privs = &rustbind_privs, - - .yang_modules = rustbind_yang_modules, - .n_yang_modules = array_size(rustbind_yang_modules), - - /* mgmtd will load the per-daemon config file now */ - .flags = FRR_NO_SPLIT_CONFIG, - ); -/* clang-format on */ - -extern struct frr_daemon_info *rust_get_daemon_info(void); - -struct frr_daemon_info *rust_get_daemon_info(void) -{ - return &rustbind_di; -} |
