Revision cf98be7b nest/route.h

View differences:

nest/route.h
221 221
} rte;
222 222

  
223 223
#define REF_COW		1		/* Copy this rte on write */
224
#define REF_REJECTED	2		/* Route is rejected by import filter */
225

  
226
/* Route is valid for propagation (may depend on other flags in the future), accepts NULL */
227
static inline int rte_is_valid(rte *r) { return r && !(r->flags & REF_REJECTED); }
228

  
229
/* Route just has REF_REJECTED flag */
230
static inline int rte_is_rejected(rte *r) { return !!(r->flags & REF_REJECTED); }
231

  
224 232

  
225 233
/* Types of route announcement, also used as flags */
226 234
#define RA_OPTIMAL	1		/* Announcement of optimal route change */
......
263 271
  struct fib_iterator fit;
264 272
  struct proto *show_protocol;
265 273
  struct proto *export_protocol;
266
  int export_mode, primary_only;
274
  int export_mode, primary_only, rejected;
267 275
  struct config *running_on_config;
268 276
  int net_counter, rt_counter, show_counter;
269 277
  int stats, show_for;

Also available in: Unified diff