]> git.proxmox.com Git - mirror_frr.git/blame - watchfrr/watchfrr.h
bgpd: [7.1] add addpath ID to adj_out tree sort (#5691)
[mirror_frr.git] / watchfrr / watchfrr.h
CommitLineData
95c4aff2 1/*
896014f4
DL
2 * Common definitions for watchfrr API socket.
3 *
4 * Copyright (C) 2016 David Lamparter for NetDEF, Inc.
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
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
95c4aff2
DL
19 */
20
9473e340
DS
21#ifndef FRR_WATCHFRR_H
22#define FRR_WATCHFRR_H
95c4aff2 23
0a7c7856
DL
24#include "lib/memory.h"
25
26DECLARE_MGROUP(WATCHFRR)
27
9473e340 28extern void watchfrr_vty_init(void);
95c4aff2
DL
29
30extern pid_t integrated_write_pid;
31extern void integrated_write_sigchld(int status);
af568444
DL
32
33struct vty;
34extern void watchfrr_status(struct vty *vty);
35
470bc619
QY
36/*
37 * Check if all daemons we are monitoring are in the DAEMON_UP state.
38 *
39 * Returns:
40 * True if they are all DAEMON_UP, false otherwise.
41 */
42extern bool check_all_up(void);
95c4aff2 43
d62a17ae 44#endif /* FRR_WATCHFRR_H */