]> git.proxmox.com Git - mirror_frr.git/blob - sharpd/sharp_nht.h
Merge pull request #13649 from donaldsharp/unlock_the_node_or_else
[mirror_frr.git] / sharpd / sharp_nht.h
1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /*
3 * SHARP - code to track nexthops
4 * Copyright (C) Cumulus Networks, Inc.
5 * Donald Sharp
6 */
7 #ifndef __SHARP_NHT_H__
8 #define __SHARP_NHT_H__
9
10 struct sharp_nh_tracker {
11 /* What are we watching */
12 struct prefix p;
13
14 /* Number of valid nexthops */
15 uint32_t nhop_num;
16
17 uint32_t updates;
18 };
19
20 extern struct sharp_nh_tracker *sharp_nh_tracker_get(struct prefix *p);
21
22 extern void sharp_nh_tracker_dump(struct vty *vty);
23
24 extern uint32_t sharp_nhgroup_get_id(const char *name);
25 extern void sharp_nhgroup_id_set_installed(uint32_t id, bool installed);
26 extern bool sharp_nhgroup_id_is_installed(uint32_t id);
27
28 extern void sharp_nhgroup_init(void);
29 #endif