1
0
mirror of https://gitlab.labs.nic.cz/labs/bird.git synced 2024-05-11 16:54:54 +00:00

Implements 'allow local as' option.

Similar to allowas-in option on other routers.
This commit is contained in:
Ondrej Zajicek
2013-10-21 14:58:32 +02:00
parent f8cc7396cf
commit a15dab76f9
7 changed files with 22 additions and 6 deletions

View File

@@ -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);