diff options
Diffstat (limited to 'zebra/zebra_router.h')
| -rw-r--r-- | zebra/zebra_router.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/zebra/zebra_router.h b/zebra/zebra_router.h index 0e2725c977..992bcd5c08 100644 --- a/zebra/zebra_router.h +++ b/zebra/zebra_router.h @@ -285,6 +285,11 @@ static inline void zebra_router_set_supports_nhgs(bool support) zrouter.supports_nhgs = support; } +static inline bool zebra_router_in_shutdown(void) +{ + return atomic_load_explicit(&zrouter.in_shutdown, memory_order_relaxed); +} + /* zebra_northbound.c */ extern const struct frr_yang_module_info frr_zebra_info; |
