]> git.proxmox.com Git - mirror_frr.git/blob - ospfd/ospf_ldp_sync.h
*: auto-convert to SPDX License IDs
[mirror_frr.git] / ospfd / ospf_ldp_sync.h
1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /*
3 * ospf_ldp_sync.h: OSPF LDP-IGP Sync handling routines
4 * Copyright (C) 2020 Volta Networks, Inc.
5 */
6
7 #ifndef _ZEBRA_OSPF_LDP_SYNC_H
8 #define _ZEBRA_OSPF_LDP_SYNC_H
9
10 #define LDP_OSPF_LSINFINITY 65535
11
12 /* Macro to log debug message */
13 #define ols_debug(...) \
14 do { \
15 if (IS_DEBUG_OSPF_LDP_SYNC) \
16 zlog_debug(__VA_ARGS__); \
17 } while (0)
18
19
20 extern void ospf_if_set_ldp_sync_enable(struct ospf *ospf,
21 struct interface *ifp);
22 extern void ospf_if_set_ldp_sync_holddown(struct ospf *ospf,
23 struct interface *ifp);
24 extern void ospf_ldp_sync_if_init(struct ospf_interface *ospf);
25 extern void ospf_ldp_sync_if_start(struct interface *ifp, bool send_state_req);
26 extern void ospf_ldp_sync_if_remove(struct interface *ifp, bool remove);
27 extern void ospf_ldp_sync_if_down(struct interface *ifp);
28 extern void ospf_ldp_sync_if_complete(struct interface *ifp);
29 extern void ospf_ldp_sync_holddown_timer_add(struct interface *ifp);
30 extern void ospf_ldp_sync_ldp_fail(struct interface *ifp);
31 extern void ospf_ldp_sync_show_info(struct vty *vty, struct ospf *ospf,
32 json_object *json_vrf, bool use_json);
33 extern void ospf_ldp_sync_write_config(struct vty *vty, struct ospf *ospf);
34 extern void ospf_ldp_sync_if_write_config(struct vty *vty,
35 struct ospf_if_params *params);
36 extern int ospf_ldp_sync_state_update(struct ldp_igp_sync_if_state state);
37 extern int ospf_ldp_sync_announce_update(struct ldp_igp_sync_announce announce);
38 extern void
39 ospf_ldp_sync_handle_client_close(struct zapi_client_close_info *info);
40 extern void ospf_ldp_sync_state_req_msg(struct interface *ifp);
41 extern void ospf_ldp_sync_init(void);
42 extern void ospf_ldp_sync_gbl_exit(struct ospf *ospf, bool remove);
43 #endif /* _ZEBRA_OSPF_LDP_SYNC_H */