diff options
author | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2018-10-25 11:23:15 +0200 |
---|---|---|
committer | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2018-10-25 11:23:15 +0200 |
commit | 41b83e52f7f0a0de88c220aab88a4dd31f05fce0 (patch) | |
tree | d8d1c224669d99ffc52039d7e23524d163c6b599 /filter | |
parent | 01dd78f9e924cc6d7511da1ec32c8f36d357db7a (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 0a2c26b8..edf54ec0 100644 --- a/filter/filter.c +++ b/filter/filter.c @@ -1523,7 +1523,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_eattrs, EA_CODE(PROTOCOL_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); |