]> git.proxmox.com Git - mirror_frr.git/blob - pimd/pim_bfd.h
Merge pull request #12798 from donaldsharp/rib_match_multicast
[mirror_frr.git] / pimd / pim_bfd.h
1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /*
3 * pim_bfd.h: PIM BFD definitions and structures
4 *
5 * Copyright (C) 2017 Cumulus Networks, Inc.
6 * Chirag Shah
7 */
8
9 #ifndef PIM_BFD_H
10 #define PIM_BFD_H
11
12 #include "if.h"
13
14 /**
15 * Initializes PIM BFD integration code.
16 */
17 void pim_bfd_init(void);
18
19 /**
20 * Write configuration to `show running-config`.
21 *
22 * \param vty the vty output pointer.
23 * \param ifp the interface pointer that has the configuration.
24 */
25 void pim_bfd_write_config(struct vty *vty, struct interface *ifp);
26
27 /**
28 * Enables or disables all peers BFD sessions.
29 *
30 * \param ifp interface pointer.
31 * \param enable session state to set.
32 */
33 void pim_bfd_reg_dereg_all_nbr(struct interface *ifp);
34
35 /**
36 * Create and configure peer BFD session if it does not exist. It will use
37 * the interface configured parameters as the peer configuration.
38 *
39 * \param pim_ifp the interface configuration pointer.
40 * \param neigh the neighbor configuration pointer.
41 */
42 void pim_bfd_info_nbr_create(struct pim_interface *pim_ifp,
43 struct pim_neighbor *neigh);
44
45 #endif /* _PIM_BFD_H */