diff options
author | Ondrej Zajicek <santiago@crfreenet.org> | 2013-02-08 23:58:27 +0100 |
---|---|---|
committer | Ondrej Zajicek <santiago@crfreenet.org> | 2013-02-08 23:58:27 +0100 |
commit | 36da2857bc911924a250a234f38cf58c3b21f1bc (patch) | |
tree | 58e39ad7b5cff5ec2525b07c274e4d43ef01ae87 /filter | |
parent | d214ae4fdc1e323f89efb8a80c068fef4a45758f (diff) |
Implements router advertisements activated by received routes.
The RAdv protocol could be configured to change its behavior based on
availability of routes, e.g., do not announce router lifetime when a
default route is not available.
Diffstat (limited to 'filter')
-rw-r--r-- | filter/filter.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/filter/filter.c b/filter/filter.c index 44fcf293..c35d0425 100644 --- a/filter/filter.c +++ b/filter/filter.c @@ -1429,6 +1429,12 @@ i_same(struct f_inst *f1, struct f_inst *f2) int f_run(struct filter *filter, struct rte **rte, struct ea_list **tmp_attrs, struct linpool *tmp_pool, int flags) { + if (filter == FILTER_ACCEPT) + return F_ACCEPT; + + if (filter == FILTER_REJECT) + return F_REJECT; + int rte_cow = ((*rte)->flags & REF_COW); DBG( "Running filter `%s'...", filter->name ); |