]>
Commit | Line | Data |
---|---|---|
d21f1a93 DS |
1 | /* |
2 | * SHARP - code to track globals | |
3 | * Copyright (C) 2019 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_GLOBAL_H__ | |
23 | #define __SHARP_GLOBAL_H__ | |
24 | ||
547dc642 DS |
25 | struct sharp_routes { |
26 | /* The original prefix for route installation */ | |
27 | struct prefix orig_prefix; | |
28 | ||
29 | /* The nexthop group we are using for installation */ | |
30 | struct nexthop nhop; | |
31 | struct nexthop_group nhop_group; | |
32 | ||
33 | uint32_t total_routes; | |
34 | uint32_t installed_routes; | |
35 | uint32_t removed_routes; | |
36 | int32_t repeat; | |
37 | ||
38 | uint8_t inst; | |
39 | ||
40 | struct timeval t_start; | |
41 | struct timeval t_end; | |
42 | }; | |
43 | ||
d21f1a93 | 44 | struct sharp_global { |
547dc642 | 45 | struct sharp_routes r; |
d21f1a93 DS |
46 | }; |
47 | ||
547dc642 | 48 | extern struct sharp_global sg; |
d21f1a93 | 49 | #endif |