]> git.proxmox.com Git - mirror_frr.git/blob - ospfd/ospf_bfd.h
pathd: some traces are added to 'debug pathd ted' command.
[mirror_frr.git] / ospfd / ospf_bfd.h
1 /**
2 * ospf_bfd.h: OSPF BFD definitions and structures
3 *
4 * @copyright Copyright (C) 2015 Cumulus Networks, Inc.
5 *
6 * This file is part of GNU Zebra.
7 *
8 * GNU Zebra is free software; you can redistribute it and/or modify it
9 * under the terms of the GNU General Public License as published by the
10 * Free Software Foundation; either version 2, or (at your option) any
11 * later version.
12 *
13 * GNU Zebra is distributed in the hope that it will be useful, but
14 * WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License along
19 * with this program; see the file COPYING; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21 */
22
23 #ifndef _ZEBRA_OSPF_BFD_H
24 #define _ZEBRA_OSPF_BFD_H
25
26 #include "ospfd/ospf_interface.h"
27 #include "json.h"
28
29 extern void ospf_bfd_init(struct thread_master *tm);
30
31 extern void ospf_bfd_write_config(struct vty *vty,
32 const struct ospf_if_params *params);
33
34 extern void ospf_bfd_trigger_event(struct ospf_neighbor *nbr, int old_state,
35 int state);
36
37 /**
38 * Legacy information: it is the peers who actually have this information
39 * and the protocol should not need to know about timers.
40 */
41 extern void ospf_interface_bfd_show(struct vty *vty,
42 const struct interface *ifp,
43 struct json_object *json);
44
45 /**
46 * Disables interface BFD configuration and remove settings from all peers.
47 */
48 extern void ospf_interface_disable_bfd(struct interface *ifp,
49 struct ospf_if_params *oip);
50
51 /**
52 * Create/update BFD session for this OSPF neighbor.
53 */
54 extern void ospf_neighbor_bfd_apply(struct ospf_neighbor *nbr);
55
56 #endif /* _ZEBRA_OSPF_BFD_H */