]>
git.proxmox.com Git - mirror_frr.git/blob - ospfd/ospf_bfd.h
2 * ospf_bfd.h: OSPF BFD definitions and structures
4 * @copyright Copyright (C) 2015 Cumulus Networks, Inc.
6 * This file is part of GNU Zebra.
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
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.
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
23 #ifndef _ZEBRA_OSPF_BFD_H
24 #define _ZEBRA_OSPF_BFD_H
26 #include "ospfd/ospf_interface.h"
29 extern void ospf_bfd_init(struct thread_master
*tm
);
31 extern void ospf_bfd_write_config(struct vty
*vty
,
32 const struct ospf_if_params
*params
);
34 extern void ospf_bfd_trigger_event(struct ospf_neighbor
*nbr
, int old_state
,
38 * Legacy information: it is the peers who actually have this information
39 * and the protocol should not need to know about timers.
41 extern void ospf_interface_bfd_show(struct vty
*vty
,
42 const struct interface
*ifp
,
43 struct json_object
*json
);
46 * Disables interface BFD configuration and remove settings from all peers.
48 extern void ospf_interface_disable_bfd(struct interface
*ifp
,
49 struct ospf_if_params
*oip
);
52 * Create/update BFD session for this OSPF neighbor.
54 extern void ospf_neighbor_bfd_apply(struct ospf_neighbor
*nbr
);
56 #endif /* _ZEBRA_OSPF_BFD_H */