summaryrefslogtreecommitdiffstats
path: root/pimd/pim_bfd.h
blob: 3d8e29a99712b2a2901d2ad15a7348b9a3cf0295 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * pim_bfd.h: PIM BFD definitions and structures
 *
 * Copyright (C) 2017 Cumulus Networks, Inc.
 * Chirag Shah
 */

#ifndef PIM_BFD_H
#define PIM_BFD_H

#include "if.h"

/**
 * Initializes PIM BFD integration code.
 */
void pim_bfd_init(void);

/**
 * Write configuration to `show running-config`.
 *
 * \param vty the vty output pointer.
 * \param ifp the interface pointer that has the configuration.
 */
void pim_bfd_write_config(struct vty *vty, struct interface *ifp);

/**
 * Enables or disables all peers BFD sessions.
 *
 * \param ifp interface pointer.
 * \param enable session state to set.
 */
void pim_bfd_reg_dereg_all_nbr(struct interface *ifp);

/**
 * Create and configure peer BFD session if it does not exist. It will use
 * the interface configured parameters as the peer configuration.
 *
 * \param pim_ifp the interface configuration pointer.
 * \param neigh the neighbor configuration pointer.
 */
void pim_bfd_info_nbr_create(struct pim_interface *pim_ifp,
			     struct pim_neighbor *neigh);

#endif /* _PIM_BFD_H */