]>
git.proxmox.com Git - mirror_frr.git/blob - sharpd/sharp_nht.h
1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * SHARP - code to track nexthops
4 * Copyright (C) Cumulus Networks, Inc.
7 #ifndef __SHARP_NHT_H__
8 #define __SHARP_NHT_H__
10 struct sharp_nh_tracker
{
11 /* What are we watching */
14 /* Number of valid nexthops */
20 extern struct sharp_nh_tracker
*sharp_nh_tracker_get(struct prefix
*p
);
22 extern void sharp_nh_tracker_dump(struct vty
*vty
);
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
);
28 extern void sharp_nhgroup_init(void);