]> git.proxmox.com Git - mirror_frr.git/blob - ospf6d/ospf6_flood.h
*: auto-convert to SPDX License IDs
[mirror_frr.git] / ospf6d / ospf6_flood.h
1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /*
3 * Copyright (C) 2003 Yasuhiro Ohara
4 */
5
6 #ifndef OSPF6_FLOOD_H
7 #define OSPF6_FLOOD_H
8
9 /* Debug option */
10 extern unsigned char conf_debug_ospf6_flooding;
11 #define OSPF6_DEBUG_FLOODING_ON() (conf_debug_ospf6_flooding = 1)
12 #define OSPF6_DEBUG_FLOODING_OFF() (conf_debug_ospf6_flooding = 0)
13 #define IS_OSPF6_DEBUG_FLOODING (conf_debug_ospf6_flooding)
14
15 /* Function Prototypes */
16 extern struct ospf6_lsdb *ospf6_get_scoped_lsdb(struct ospf6_lsa *lsa);
17 extern struct ospf6_lsdb *ospf6_get_scoped_lsdb_self(struct ospf6_lsa *lsa);
18
19 /* origination & purging */
20 extern void ospf6_lsa_originate(struct ospf6 *ospf6, struct ospf6_lsa *lsa);
21 extern void ospf6_lsa_originate_process(struct ospf6_lsa *lsa,
22 struct ospf6 *process);
23 extern void ospf6_lsa_originate_area(struct ospf6_lsa *lsa,
24 struct ospf6_area *oa);
25 extern void ospf6_lsa_originate_interface(struct ospf6_lsa *lsa,
26 struct ospf6_interface *oi);
27 void ospf6_external_lsa_purge(struct ospf6 *ospf6, struct ospf6_lsa *lsa);
28 extern void ospf6_lsa_purge(struct ospf6_lsa *lsa);
29
30 extern void ospf6_lsa_purge_multi_ls_id(struct ospf6_area *oa,
31 struct ospf6_lsa *lsa);
32
33 /* access method to retrans_count */
34 extern void ospf6_increment_retrans_count(struct ospf6_lsa *lsa);
35 extern void ospf6_decrement_retrans_count(struct ospf6_lsa *lsa);
36
37 /* flooding & clear flooding */
38 extern void ospf6_flood_clear(struct ospf6_lsa *lsa);
39 extern void ospf6_flood(struct ospf6_neighbor *from, struct ospf6_lsa *lsa);
40 extern void ospf6_flood_area(struct ospf6_neighbor *from, struct ospf6_lsa *lsa,
41 struct ospf6_area *oa);
42
43 /* receive & install */
44 extern void ospf6_receive_lsa(struct ospf6_neighbor *from,
45 struct ospf6_lsa_header *header);
46 extern void ospf6_install_lsa(struct ospf6_lsa *lsa);
47
48 extern int config_write_ospf6_debug_flood(struct vty *vty);
49 extern void install_element_ospf6_debug_flood(void);
50 extern void ospf6_flood_interface(struct ospf6_neighbor *from,
51 struct ospf6_lsa *lsa,
52 struct ospf6_interface *oi);
53 extern int ospf6_lsupdate_send_neighbor_now(struct ospf6_neighbor *on,
54 struct ospf6_lsa *lsa);
55
56 extern void ospf6_flood_clear_area(struct ospf6_lsa *lsa,
57 struct ospf6_area *oa);
58 #endif /* OSPF6_FLOOD_H */