mirror of
https://gitlab.labs.nic.cz/labs/bird.git
synced 2024-05-11 16:54:54 +00:00
Fixed bad filter re-evaluation with import table if filtered->accepted
The import table feed wasn't resetting the table-specific route values like REF_FILTERED and thus made the route look like filtered even though it should have been re-evaluated as accepted.
This commit is contained in:
10
lib/route.h
10
lib/route.h
@@ -46,6 +46,16 @@ static inline int rte_is_valid(rte *r) { return r && !(r->flags & REF_FILTERED);
|
||||
/* Route just has REF_FILTERED flag */
|
||||
static inline int rte_is_filtered(rte *r) { return !!(r->flags & REF_FILTERED); }
|
||||
|
||||
/* Strip the route of the table-specific values */
|
||||
static inline rte rte_init_from(const rte *r)
|
||||
{
|
||||
return (rte) {
|
||||
.attrs = r->attrs,
|
||||
.net = r->net,
|
||||
.src = r->src,
|
||||
};
|
||||
}
|
||||
|
||||
struct rte_src {
|
||||
struct rte_src *next; /* Hash chain */
|
||||
struct rte_owner *owner; /* Route source owner */
|
||||
|
||||
Reference in New Issue
Block a user