X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=ripngd%2Fripng_main.c;h=9933dae5cd762c24d305eb9599a73dfc2c9beb37;hb=HEAD;hp=34cd4ab0a7ff52a7164a5faf2d017a17626c11eb;hpb=d10bda270e6a5bfdd634f3f442724f20256e027e;p=mirror_frr.git diff --git a/ripngd/ripng_main.c b/ripngd/ripng_main.c index 34cd4ab0a..9933dae5c 100644 --- a/ripngd/ripng_main.c +++ b/ripngd/ripng_main.c @@ -1,22 +1,7 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * RIPngd main routine. * Copyright (C) 1998, 1999 Kunihiro Ishiguro - * - * This file is part of GNU Zebra. - * - * GNU Zebra is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License as published by the - * Free Software Foundation; either version 2, or (at your option) any - * later version. - * - * GNU Zebra is distributed in the hope that it will be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along - * with this program; see the file COPYING; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ #include @@ -27,7 +12,7 @@ #include "vty.h" #include "command.h" #include "memory.h" -#include "thread.h" +#include "frrevent.h" #include "log.h" #include "prefix.h" #include "if.h" @@ -47,6 +32,8 @@ struct option longopts[] = {{0}}; /* ripngd privileges */ zebra_capabilities_t _caps_p[] = {ZCAP_NET_RAW, ZCAP_BIND, ZCAP_SYS_ADMIN}; +uint32_t zebra_ecmp_count = MULTIPATH_NUM; + struct zebra_privs_t ripngd_privs = { #if defined(FRR_USER) .user = FRR_USER, @@ -63,7 +50,7 @@ struct zebra_privs_t ripngd_privs = { /* Master of threads. */ -struct thread_master *master; +struct event_loop *master; static struct frr_daemon_info ripngd_di; @@ -94,7 +81,7 @@ static void sigusr1(void) zlog_rotate(); } -struct quagga_signal_t ripng_signals[] = { +struct frr_signal_t ripng_signals[] = { { .signal = SIGHUP, .handler = &sighup,