]> git.proxmox.com Git - mirror_frr.git/blame - sharpd/sharp_nht.h
bgpd: Refactor subgroup_announce_table() to reuse an existing helpers
[mirror_frr.git] / sharpd / sharp_nht.h
CommitLineData
acddc0ed 1// SPDX-License-Identifier: GPL-2.0-or-later
86da53ab
DS
2/*
3 * SHARP - code to track nexthops
4 * Copyright (C) Cumulus Networks, Inc.
5 * Donald Sharp
86da53ab
DS
6 */
7#ifndef __SHARP_NHT_H__
8#define __SHARP_NHT_H__
9
10struct 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
20extern struct sharp_nh_tracker *sharp_nh_tracker_get(struct prefix *p);
21
22extern void sharp_nh_tracker_dump(struct vty *vty);
569e87c0
DS
23
24extern uint32_t sharp_nhgroup_get_id(const char *name);
2053061b
SW
25extern void sharp_nhgroup_id_set_installed(uint32_t id, bool installed);
26extern bool sharp_nhgroup_id_is_installed(uint32_t id);
27
569e87c0 28extern void sharp_nhgroup_init(void);
86da53ab 29#endif