]>
Commit | Line | Data |
---|---|---|
86da53ab DS |
1 | /* |
2 | * SHARP - code to track nexthops | |
3 | * Copyright (C) Cumulus Networks, Inc. | |
4 | * Donald Sharp | |
5 | * | |
6 | * This file is part of FRR. | |
7 | * | |
8 | * FRR is free software; you can redistribute it and/or modify it | |
9 | * under the terms of the GNU General Public License as published by the | |
10 | * Free Software Foundation; either version 2, or (at your option) any | |
11 | * later version. | |
12 | * | |
13 | * FRR is distributed in the hope that it will be useful, but | |
14 | * WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
16 | * General Public License for more details. | |
17 | * | |
18 | * You should have received a copy of the GNU General Public License along | |
19 | * with this program; see the file COPYING; if not, write to the Free Software | |
20 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | |
21 | */ | |
22 | #ifndef __SHARP_NHT_H__ | |
23 | #define __SHARP_NHT_H__ | |
24 | ||
25 | struct sharp_nh_tracker { | |
26 | /* What are we watching */ | |
27 | struct prefix p; | |
28 | ||
29 | /* Number of valid nexthops */ | |
30 | uint32_t nhop_num; | |
31 | ||
32 | uint32_t updates; | |
33 | }; | |
34 | ||
35 | extern struct sharp_nh_tracker *sharp_nh_tracker_get(struct prefix *p); | |
36 | ||
37 | extern void sharp_nh_tracker_dump(struct vty *vty); | |
38 | #endif |