Lines Matching defs:prefix
40 LIST_HEAD(prefix_list, prefix);
41 TAILQ_HEAD(prefix_queue, prefix);
47 struct pt_entry *prefix;
74 RB_HEAD(prefix_tree, prefix);
75 RB_HEAD(prefix_index, prefix);
237 struct prefix *next_prefix;
266 struct prefix {
269 TAILQ_ENTRY(prefix) rib;
270 LIST_ENTRY(prefix) nexthop;
274 RB_ENTRY(prefix) index, update;
294 #define PREFIX_FLAG_MASK 0x000f /* mask for the prefix types */
295 #define PREFIX_FLAG_ADJOUT 0x0010 /* prefix is in the adj-out rib */
296 #define PREFIX_FLAG_EOR 0x0020 /* prefix is EoR */
297 #define PREFIX_NEXTHOP_LINKED 0x0040 /* prefix is linked onto nexthop list */
299 #define PREFIX_FLAG_FILTERED 0x0100 /* prefix is filtered (ineligible) */
344 void rde_send_kroute(struct rib *, struct prefix *, struct prefix *);
346 void rde_pftable_add(uint16_t, struct prefix *);
347 void rde_pftable_del(uint16_t, struct prefix *);
370 void rde_generate_updates(struct rib_entry *, struct prefix *,
371 struct prefix *, enum eval_mode);
486 int prefix_eligible(struct prefix *);
487 struct prefix *prefix_best(struct rib_entry *);
488 void prefix_evaluate(struct rib_entry *, struct prefix *,
489 struct prefix *);
490 void prefix_evaluate_nexthop(struct prefix *, enum nexthop_state,
497 void rde_filterstate_prep(struct filterstate *, struct prefix *);
571 if (re->prefix->aid == AID_FLOWSPECv4 ||
572 re->prefix->aid == AID_FLOWSPECv6)
585 struct prefix *prefix_get(struct rib *, struct rde_peer *, uint32_t,
587 struct prefix *prefix_adjout_get(struct rde_peer *, uint32_t,
589 struct prefix *prefix_adjout_first(struct rde_peer *, struct pt_entry *);
590 struct prefix *prefix_adjout_next(struct rde_peer *, struct prefix *);
591 struct prefix *prefix_adjout_lookup(struct rde_peer *, struct bgpd_addr *,
593 struct prefix *prefix_adjout_match(struct rde_peer *, struct bgpd_addr *);
606 void prefix_adjout_update(struct prefix *, struct rde_peer *,
608 void prefix_adjout_withdraw(struct prefix *);
609 void prefix_adjout_destroy(struct prefix *);
613 void *, void (*)(struct prefix *, void *),
617 void (*)(struct prefix *, void *),
619 struct prefix *prefix_bypeer(struct rib_entry *, struct rde_peer *,
621 void prefix_destroy(struct prefix *);
623 RB_PROTOTYPE(prefix_tree, prefix, entry, prefix_cmp)
626 prefix_peer(struct prefix *p)
632 prefix_aspath(struct prefix *p)
638 prefix_communities(struct prefix *p)
644 prefix_nexthop(struct prefix *p)
650 prefix_nhflags(struct prefix *p)
656 prefix_nhvalid(struct prefix *p)
662 prefix_roa_vstate(struct prefix *p)
668 prefix_aspa_vstate(struct prefix *p)
674 prefix_set_vstate(struct prefix *p, uint8_t roa_vstate, uint8_t aspa_vstate)
681 prefix_re(struct prefix *p)
689 prefix_filtered(struct prefix *p)
699 void nexthop_link(struct prefix *);
700 void nexthop_unlink(struct prefix *);
710 struct prefix *, struct prefix *);