diff options
author | Ondrej Zajicek <santiago@crfreenet.org> | 2013-07-09 23:27:10 +0200 |
---|---|---|
committer | Ondrej Zajicek <santiago@crfreenet.org> | 2013-07-09 23:27:10 +0200 |
commit | cc31b75a8fd7949533c12db2c3e9d67eeaf46d10 (patch) | |
tree | 33ce8dbfd3279b121cd70cca13b315d9ecc07a57 /filter/filter.c | |
parent | c01a94663cc18f53fd741c5d44387eead9ca88af (diff) |
Implements 'bgppath ~ int set' filter op.
Diffstat (limited to 'filter/filter.c')
-rw-r--r-- | filter/filter.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/filter/filter.c b/filter/filter.c index c35d0425..432fa122 100644 --- a/filter/filter.c +++ b/filter/filter.c @@ -418,6 +418,9 @@ val_in_range(struct f_val v1, struct f_val v2) if ((v1.type == T_ECLIST) && (v2.type == T_SET)) return eclist_match_set(v1.val.ad, v2.val.t); + if ((v1.type == T_PATH) && (v2.type == T_SET)) + return as_path_match_set(v1.val.ad, v2.val.t); + if (v2.type == T_SET) switch (v1.type) { case T_ENUM: |