From d68824c96f2e8cee14b6a505c91fd379b9aa3088 Mon Sep 17 00:00:00 2001 From: Patrick McHardy Date: Wed, 24 Sep 2014 13:49:04 +0200 Subject: 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 --- include/expression.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include') 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 */ -- cgit v1.2.3