summaryrefslogtreecommitdiff
path: root/filter
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2013-10-21 14:58:32 +0200
committerOndrej Zajicek <santiago@crfreenet.org>2013-10-21 14:59:35 +0200
commita15dab76f93337b07b4b03a64ac3bac26285dfd9 (patch)
treeef2593148938733814a8b4b1a6fceb60e5c30886 /filter
parentf8cc7396cf25328b002394bbd7af679188b03370 (diff)
Implements 'allow local as' option.
Similar to allowas-in option on other routers.
Diffstat (limited to 'filter')
-rw-r--r--filter/filter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/filter/filter.c b/filter/filter.c
index b01933f7..a28de5df 100644
--- a/filter/filter.c
+++ b/filter/filter.c
@@ -392,7 +392,7 @@ val_in_range(struct f_val v1, struct f_val v2)
return as_path_match(v1.val.ad, v2.val.path_mask);
if ((v1.type == T_INT) && (v2.type == T_PATH))
- return as_path_is_member(v2.val.ad, v1.val.i);
+ return as_path_contains(v2.val.ad, v1.val.i, 1);
if (((v1.type == T_PAIR) || (v1.type == T_QUAD)) && (v2.type == T_CLIST))
return int_set_contains(v2.val.ad, v1.val.i);