diff options
author | Phil Sutter <phil@nwl.cc> | 2023-12-13 14:56:49 +0100 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2024-03-06 15:40:37 +0100 |
commit | 4ed45d7bbbb9f914c934af327ee0271bcc909302 (patch) | |
tree | f99332e063ae4aee3cc16cd53afc8e9812b88cec /include/expr_ops.h | |
parent | c2982f81e0d15fb3109112945c73b93a53e21348 (diff) |
expr: Repurpose struct expr_ops::max_attr field
Instead of holding the maximum kernel space (NFTA_*) attribute value,
use it to hold the maximum expression attribute (NFTNL_EXPR_*) value
instead. This will be used for index boundary checks in an attribute
policy array later.
Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'include/expr_ops.h')
-rw-r--r-- | include/expr_ops.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/expr_ops.h b/include/expr_ops.h index a7d747a..51b2214 100644 --- a/include/expr_ops.h +++ b/include/expr_ops.h @@ -11,7 +11,7 @@ struct nftnl_expr; struct expr_ops { const char *name; uint32_t alloc_len; - int max_attr; + int nftnl_max_attr; void (*init)(const struct nftnl_expr *e); void (*free)(const struct nftnl_expr *e); int (*set)(struct nftnl_expr *e, uint16_t type, const void *data, uint32_t data_len); |