diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/expression.h | 3 | ||||
-rw-r--r-- | include/linux/netfilter/nf_tables.h | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/include/expression.h b/include/expression.h index 7e626c48..be703d75 100644 --- a/include/expression.h +++ b/include/expression.h @@ -71,6 +71,7 @@ enum expr_types { EXPR_RT, EXPR_FIB, EXPR_XFRM, + EXPR_SET_ELEM_CATCHALL, }; #define EXPR_MAX EXPR_XFRM @@ -497,6 +498,8 @@ extern struct expr *set_ref_expr_alloc(const struct location *loc, extern struct expr *set_elem_expr_alloc(const struct location *loc, struct expr *key); +struct expr *set_elem_catchall_expr_alloc(const struct location *loc); + 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); diff --git a/include/linux/netfilter/nf_tables.h b/include/linux/netfilter/nf_tables.h index 8c85ef8e..894a62cf 100644 --- a/include/linux/netfilter/nf_tables.h +++ b/include/linux/netfilter/nf_tables.h @@ -393,9 +393,11 @@ enum nft_set_attributes { * enum nft_set_elem_flags - nf_tables set element flags * * @NFT_SET_ELEM_INTERVAL_END: element ends the previous interval + * @NFT_SET_ELEM_CATCHALL: special catch-all element */ enum nft_set_elem_flags { NFT_SET_ELEM_INTERVAL_END = 0x1, + NFT_SET_ELEM_CATCHALL = 0x2, }; /** |