static void print_record(const struct pfx_record *record, struct vty *vty);
static int is_synchronized(void);
static int is_running(void);
+static int is_stopping(void);
static void route_match_free(void *rule);
static enum route_map_cmd_result_t route_match(void *rule,
const struct prefix *prefix,
return rtr_is_running;
}
+inline int is_stopping(void)
+{
+ return rtr_is_stopping;
+}
+
static struct prefix *pfx_record_to_prefix(struct pfx_record *record)
{
struct prefix *prefix = prefix_new();
struct pfx_record rec = {0};
int retval;
- if (rtr_is_stopping ||
+ if (is_stopping() ||
atomic_load_explicit(&rtr_update_overflow, memory_order_seq_cst))
return;
const struct pfx_record rec,
const bool added __attribute__((unused)))
{
- if (rtr_is_stopping
- || atomic_load_explicit(&rtr_update_overflow, memory_order_seq_cst))
+ if (is_stopping() ||
+ atomic_load_explicit(&rtr_update_overflow, memory_order_seq_cst))
return;
int retval =