]>
Commit | Line | Data |
---|---|---|
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 | ||
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); | |
569e87c0 DS |
23 | |
24 | extern uint32_t sharp_nhgroup_get_id(const char *name); | |
2053061b SW |
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 | ||
569e87c0 | 28 | extern void sharp_nhgroup_init(void); |
86da53ab | 29 | #endif |