]>
Commit | Line | Data |
---|---|---|
7f342629 DS |
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 | * | |
896014f4 DL |
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 | |
7f342629 DS |
21 | */ |
22 | ||
23 | #ifndef _ZEBRA_OSPF_BFD_H | |
24 | #define _ZEBRA_OSPF_BFD_H | |
25 | ||
659f4e40 | 26 | #include "ospfd/ospf_interface.h" |
68fe91d6 | 27 | #include "json.h" |
28 | ||
659f4e40 | 29 | extern void ospf_bfd_init(struct thread_master *tm); |
7f342629 | 30 | |
d62a17ae | 31 | extern void ospf_bfd_write_config(struct vty *vty, |
659f4e40 | 32 | const struct ospf_if_params *params); |
7f342629 | 33 | |
d62a17ae | 34 | extern void ospf_bfd_trigger_event(struct ospf_neighbor *nbr, int old_state, |
35 | int state); | |
7f342629 | 36 | |
659f4e40 RZ |
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); | |
68fe91d6 | 44 | |
659f4e40 RZ |
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); | |
68fe91d6 | 50 | |
659f4e40 RZ |
51 | /** |
52 | * Create/update BFD session for this OSPF neighbor. | |
53 | */ | |
54 | extern void ospf_neighbor_bfd_apply(struct ospf_neighbor *nbr); | |
68fe91d6 | 55 | |
7f342629 | 56 | #endif /* _ZEBRA_OSPF_BFD_H */ |