diff options
| author | Pablo Neira Ayuso <pablo@netfilter.org> | 2025-08-13 15:11:09 +0200 |
|---|---|---|
| committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2025-08-27 23:52:08 +0200 |
| commit | 75ab7957feb78c53641331587f0f2ca8d75ccf8c (patch) | |
| tree | 4c25ccf77786112e07fad28cecf496a344c3a552 /include/expression.h | |
| parent | f011884543475ff3c12ae61cc6d7dde57df25305 (diff) | |
src: add expr_type_catchall() helper and use it
Add helper function to check if this is a catchall expression.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/expression.h')
| -rw-r--r-- | include/expression.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/expression.h b/include/expression.h index 7185ee66..acd0fd3d 100644 --- a/include/expression.h +++ b/include/expression.h @@ -558,6 +558,9 @@ extern struct expr *set_elem_expr_alloc(const struct location *loc, struct expr *set_elem_catchall_expr_alloc(const struct location *loc); +#define expr_type_catchall(__expr) \ + ((__expr)->etype == EXPR_SET_ELEM_CATCHALL) + 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); void range_expr_swap_values(struct expr *range); |
