diff options
author | Ondrej Zajicek <santiago@crfreenet.org> | 2010-07-27 17:17:11 +0200 |
---|---|---|
committer | Ondrej Zajicek <santiago@crfreenet.org> | 2010-07-27 17:17:11 +0200 |
commit | 7f0d245a5e6d2d789e1fce4b5388ea69aba3b428 (patch) | |
tree | 8646460806bbab370dd3d5c67a9f444f604a9fe1 /filter/filter.c | |
parent | f2b76f2c45bb8e7c1f13f6d4924e10f0c6b12778 (diff) | |
download | bird-7f0d245a5e6d2d789e1fce4b5388ea69aba3b428.tar bird-7f0d245a5e6d2d789e1fce4b5388ea69aba3b428.zip |
Minor changes in prefix trie.
Diffstat (limited to 'filter/filter.c')
-rw-r--r-- | filter/filter.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/filter/filter.c b/filter/filter.c index 5492f80..322fe09 100644 --- a/filter/filter.c +++ b/filter/filter.c @@ -186,7 +186,7 @@ tree_compare(const void *p1, const void *p2) } void -f_prefix_get_bounds(struct f_prefix *px, int *l, int *h) +fprefix_get_bounds(struct f_prefix *px, int *l, int *h) { *l = *h = px->len & LEN_MASK; @@ -319,7 +319,7 @@ val_in_range(struct f_val v1, struct f_val v2) return res; if ((v1.type == T_PREFIX) && (v2.type == T_PREFIX_SET)) - return trie_match_prefix(v2.val.ti, &v1.val.px); + return trie_match_fprefix(v2.val.ti, &v1.val.px); if ((v1.type == T_CLIST) && (v2.type == T_SET)) return clist_match_set(v1.val.ad, v2.val.t); |