]> git.proxmox.com Git - mirror_frr.git/blob - ospfd/ospf_orr.h
pathd: some traces are added to 'debug pathd ted' command.
[mirror_frr.git] / ospfd / ospf_orr.h
1 /*
2 * OSPF BGP-IGP IGP metric update handling routines
3 * Copyright (C) 2021 Samsung R&D Institute India - Bangalore.
4 * Madhurilatha Kuruganti
5 *
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the Free
8 * Software Foundation; either version 2 of the License, or (at your option)
9 * any later version.
10 *
11 * This program is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
14 * more details.
15 *
16 * You should have received a copy of the GNU General Public License along
17 * with this program; see the file COPYING; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19 */
20
21 #ifndef _ZEBRA_OSPF_ORR_H
22 #define _ZEBRA_OSPF_ORR_H
23
24 #define BGP_OSPF_LSINFINITY 65535
25 #define OSPF_ORR_CALC_INTERVAL 1
26
27 /* Macro to log debug message */
28 #define ospf_orr_debug(...) \
29 do { \
30 if (IS_DEBUG_OSPF_ORR) \
31 zlog_debug("[OSPF-ORR] "__VA_ARGS__); \
32 } while (0)
33
34 extern struct zclient *zclient;
35
36 extern int ospf_orr_igp_metric_register(struct orr_igp_metric_reg orr_reg);
37 extern void ospf_orr_igp_metric_send_update_add(struct orr_root *root,
38 unsigned short instance);
39 extern void ospf_orr_igp_metric_send_update_delete(struct orr_root *root,
40 unsigned short instance);
41 extern void ospf_orr_root_table_update(struct ospf_lsa *lsa, bool add);
42 extern void ospf_orr_root_update_rcvd_lsa(struct ospf_lsa *lsa);
43 extern void ospf_orr_route_install(struct orr_root *root,
44 struct route_table *rt,
45 unsigned short instance);
46 extern void ospf_orr_spf_calculate_schedule(struct ospf *ospf);
47 extern void ospf_orr_spf_calculate_area(struct ospf *ospf,
48 struct ospf_area *area,
49 struct route_table *new_table,
50 struct route_table *all_rtrs,
51 struct route_table *new_rtrs,
52 struct ospf_lsa *lsa_rcvd);
53 extern void ospf_orr_spf_calculate_areas(struct ospf *ospf,
54 struct route_table *new_table,
55 struct route_table *all_rtrs,
56 struct route_table *new_rtrs,
57 struct ospf_lsa *lsa_rcvd);
58 #endif /* _ZEBRA_OSPF_ORR_H */