1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * SHARP - code to track globals
4 * Copyright (C) 2019 Cumulus Networks, Inc.
7 #ifndef __SHARP_GLOBAL_H__
8 #define __SHARP_GLOBAL_H__
12 DECLARE_MGROUP(SHARPD
);
15 /* The original prefix for route installation */
16 struct prefix orig_prefix
;
18 /* The nexthop info we are using for installation */
20 struct nexthop backup_nhop
;
22 struct nexthop_group nhop_group
;
23 struct nexthop_group backup_nhop_group
;
25 uint32_t total_routes
;
26 uint32_t installed_routes
;
27 uint32_t removed_routes
;
30 /* ZAPI_ROUTE's flag */
36 struct timeval t_start
;
39 char opaque
[ZAPI_MESSAGE_OPAQUE_LENGTH
];
42 struct sharp_srv6_locator
{
44 char name
[SRV6_LOCNAME_SIZE
];
46 /* list of struct prefix_ipv6 */
51 /* Global data about route install/deletions */
52 struct sharp_routes r
;
54 /* The list of nexthops that we are watching and data about them */
57 /* Traffic Engineering Database */
60 /* list of sharp_srv6_locator */
61 struct list
*srv6_locators
;
64 extern struct sharp_global sg
;