summaryrefslogtreecommitdiff
path: root/filter/config.Y
diff options
context:
space:
mode:
authorOndrej Filip <feela@network.cz>2016-06-08 16:22:44 +0200
committerOndrej Filip <feela@network.cz>2016-06-08 16:22:44 +0200
commita0fe1944d12771d60986a352552e5f4b306e5f7f (patch)
tree48383090906b9011fa85f2a93ce670afe43cd9c5 /filter/config.Y
parent90dc0f08434323535f84d64e113dae84675c46b2 (diff)
Add AS# ranges to bgpmask.
Diffstat (limited to 'filter/config.Y')
-rw-r--r--filter/config.Y1
1 files changed, 1 insertions, 0 deletions
diff --git a/filter/config.Y b/filter/config.Y
index b94f5dff..e53d8def 100644
--- a/filter/config.Y
+++ b/filter/config.Y
@@ -627,6 +627,7 @@ bgp_path:
bgp_path_tail1:
NUM bgp_path_tail1 { $$ = cfg_alloc(sizeof(struct f_path_mask)); $$->next = $2; $$->kind = PM_ASN; $$->val = $1; }
+ | NUM DDOT NUM bgp_path_tail1 { $$ = cfg_alloc(sizeof(struct f_path_mask)); $$->next = $4; $$->kind = PM_ASN_RANGE; $$->val = $1; $$->val2 = $3; }
| '*' bgp_path_tail1 { $$ = cfg_alloc(sizeof(struct f_path_mask)); $$->next = $2; $$->kind = PM_ASTERISK; $$->val = 0; }
| '?' bgp_path_tail1 { $$ = cfg_alloc(sizeof(struct f_path_mask)); $$->next = $2; $$->kind = PM_QUESTION; $$->val = 0; }
| bgp_path_expr bgp_path_tail1 { $$ = cfg_alloc(sizeof(struct f_path_mask)); $$->next = $2; $$->kind = PM_ASN_EXPR; $$->val = (uintptr_t) $1; }