diff options
author | Patrick McHardy <kaber@trash.net> | 2014-09-24 13:49:04 +0200 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2014-09-24 13:49:04 +0200 |
commit | d68824c96f2e8cee14b6a505c91fd379b9aa3088 (patch) | |
tree | ee3ea46ca708c99d93149a17860d857b7123a53b /include | |
parent | 01b27b6d961d548c25f0fc185fd05fc3d2380080 (diff) |
expr: make range_low()/range_high() usable outside of segtree
Their functionality is also needed for set descriptions, move the functions
to expressions.c and give them a more suitable name for global functions.
Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/expression.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/expression.h b/include/expression.h index edb6dc50..59fa5f3d 100644 --- a/include/expression.h +++ b/include/expression.h @@ -351,4 +351,8 @@ extern struct expr *map_expr_alloc(const struct location *loc, extern struct expr *set_ref_expr_alloc(const struct location *loc, struct set *set); + +extern void range_expr_value_low(mpz_t rop, const struct expr *expr); +extern void range_expr_value_high(mpz_t rop, const struct expr *expr); + #endif /* NFTABLES_EXPRESSION_H */ |