diff options
author | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2018-12-20 12:59:55 +0100 |
---|---|---|
committer | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2018-12-20 12:59:55 +0100 |
commit | 17450df314ff472deff535104a6824c322e5aa7f (patch) | |
tree | 8ad444bdaf93262396a007e98af7e900e9e7688b /filter | |
parent | d82b1a19778d00b0efd5eddd4f96cf4cf5170dd3 (diff) |
Filter: Fix minor bug in accessing bgp_path
Not relevant for regular BGP paths, just for BGP paths added by filters
to e.g. static routes.
Diffstat (limited to 'filter')
-rw-r--r-- | filter/filter.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/filter/filter.c b/filter/filter.c index 02d3b960..63219dae 100644 --- a/filter/filter.c +++ b/filter/filter.c @@ -1527,7 +1527,7 @@ interpret(struct f_inst *what) /* 0x02 is a value of BA_AS_PATH, we don't want to include BGP headers */ eattr *e = ea_find((*f_rte)->attrs->eattrs, EA_CODE(EAP_BGP, 0x02)); - if (!e || e->type != EAF_TYPE_AS_PATH) + if (!e || ((e->type & EAF_TYPE_MASK) != EAF_TYPE_AS_PATH)) runtime("Missing AS_PATH attribute"); as_path_get_last(e->u.ptr, &as); |