]> git.proxmox.com Git - mirror_frr.git/blob - ospfd/ospf_ldp_sync.h
doc: Add `show ipv6 rpf X:X::X:X` command to docs
[mirror_frr.git] / ospfd / ospf_ldp_sync.h
1 /*
2 * ospf_ldp_sync.h: OSPF LDP-IGP Sync handling routines
3 * Copyright (C) 2020 Volta Networks, Inc.
4 *
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License as published by the Free
7 * Software Foundation; either version 2 of the License, or (at your option)
8 * any later version.
9 *
10 * This program is distributed in the hope that it will be useful, but WITHOUT
11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
13 * more details.
14 *
15 * You should have received a copy of the GNU General Public License along
16 * with this program; see the file COPYING; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 */
19
20 #ifndef _ZEBRA_OSPF_LDP_SYNC_H
21 #define _ZEBRA_OSPF_LDP_SYNC_H
22
23 #define LDP_OSPF_LSINFINITY 65535
24
25 /* Macro to log debug message */
26 #define ols_debug(...) \
27 do { \
28 if (IS_DEBUG_OSPF_LDP_SYNC) \
29 zlog_debug(__VA_ARGS__); \
30 } while (0)
31
32
33 extern void ospf_if_set_ldp_sync_enable(struct ospf *ospf,
34 struct interface *ifp);
35 extern void ospf_if_set_ldp_sync_holddown(struct ospf *ospf,
36 struct interface *ifp);
37 extern void ospf_ldp_sync_if_init(struct ospf_interface *ospf);
38 extern void ospf_ldp_sync_if_start(struct interface *ifp, bool send_state_req);
39 extern void ospf_ldp_sync_if_remove(struct interface *ifp, bool remove);
40 extern void ospf_ldp_sync_if_down(struct interface *ifp);
41 extern void ospf_ldp_sync_if_complete(struct interface *ifp);
42 extern void ospf_ldp_sync_holddown_timer_add(struct interface *ifp);
43 extern void ospf_ldp_sync_ldp_fail(struct interface *ifp);
44 extern void ospf_ldp_sync_show_info(struct vty *vty, struct ospf *ospf,
45 json_object *json_vrf, bool use_json);
46 extern void ospf_ldp_sync_write_config(struct vty *vty, struct ospf *ospf);
47 extern void ospf_ldp_sync_if_write_config(struct vty *vty,
48 struct ospf_if_params *params);
49 extern int ospf_ldp_sync_state_update(struct ldp_igp_sync_if_state state);
50 extern int ospf_ldp_sync_announce_update(struct ldp_igp_sync_announce announce);
51 extern void
52 ospf_ldp_sync_handle_client_close(struct zapi_client_close_info *info);
53 extern void ospf_ldp_sync_state_req_msg(struct interface *ifp);
54 extern void ospf_ldp_sync_init(void);
55 extern void ospf_ldp_sync_gbl_exit(struct ospf *ospf, bool remove);
56 #endif /* _ZEBRA_OSPF_LDP_SYNC_H */