]> git.proxmox.com Git - mirror_frr.git/blob - ospfd/ospf_bfd.h
tests: Do not try establishing a connection from r1 to r2
[mirror_frr.git] / ospfd / ospf_bfd.h
1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /**
3 * ospf_bfd.h: OSPF BFD definitions and structures
4 *
5 * @copyright Copyright (C) 2015 Cumulus Networks, Inc.
6 */
7
8 #ifndef _ZEBRA_OSPF_BFD_H
9 #define _ZEBRA_OSPF_BFD_H
10
11 #include "ospfd/ospf_interface.h"
12 #include "json.h"
13
14 extern void ospf_bfd_init(struct event_loop *tm);
15
16 extern void ospf_bfd_write_config(struct vty *vty,
17 const struct ospf_if_params *params);
18
19 extern void ospf_bfd_trigger_event(struct ospf_neighbor *nbr, int old_state,
20 int state);
21
22 /**
23 * Legacy information: it is the peers who actually have this information
24 * and the protocol should not need to know about timers.
25 */
26 extern void ospf_interface_bfd_show(struct vty *vty,
27 const struct interface *ifp,
28 struct json_object *json);
29
30 /**
31 * Disables interface BFD configuration and remove settings from all peers.
32 */
33 extern void ospf_interface_disable_bfd(struct interface *ifp,
34 struct ospf_if_params *oip);
35
36 /**
37 * Create/update BFD session for this OSPF neighbor.
38 */
39 extern void ospf_neighbor_bfd_apply(struct ospf_neighbor *nbr);
40
41 #endif /* _ZEBRA_OSPF_BFD_H */