3 * Copyright (C) 2018 Cumulus Networks, Inc.
6 * FRR is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the
8 * Free Software Foundation; either version 2, or (at your option) any
11 * FRR is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * General Public License for more details.
16 * You should have received a copy of the GNU General Public License along
17 * with this program; see the file COPYING; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
22 #include <lib/version.h>
34 #include "static_vrf.h"
35 #include "static_vty.h"
36 #include "static_routes.h"
37 #include "static_zebra.h"
41 zebra_capabilities_t _caps_p
[] = {
44 struct zebra_privs_t static_privs
= {
45 #if defined(FRR_USER) && defined(FRR_GROUP)
49 #if defined(VTY_GROUP)
50 .vty_group
= VTY_GROUP
,
53 .cap_num_p
= array_size(_caps_p
),
56 struct option longopts
[] = { { 0 } };
58 /* Master of threads. */
59 struct thread_master
*master
;
62 static void sighup(void)
64 zlog_info("SIGHUP received");
67 /* SIGINT / SIGTERM handler. */
68 static void sigint(void)
70 zlog_notice("Terminating on signal");
75 /* SIGUSR1 handler. */
76 static void sigusr1(void)
81 struct quagga_signal_t static_signals
[] = {
100 #define STATIC_VTY_PORT 2616
102 FRR_DAEMON_INFO(staticd
, STATIC
, .vty_port
= STATIC_VTY_PORT
,
104 .proghelp
= "Implementation of STATIC.",
106 .signals
= static_signals
,
107 .n_signals
= array_size(static_signals
),
109 .privs
= &static_privs
, )
111 int main(int argc
, char **argv
, char **envp
)
113 frr_preinit(&staticd_di
, argc
, argv
);
114 frr_opt_add("", longopts
, "");
119 opt
= frr_getopt(argc
, argv
, NULL
);