diff options
| author | Phil Sutter <phil@nwl.cc> | 2024-03-07 13:15:22 +0100 |
|---|---|---|
| committer | Phil Sutter <phil@nwl.cc> | 2024-04-11 01:27:07 +0200 |
| commit | df4e259c0537fff58ecdc7b3ec1546fb2da93968 (patch) | |
| tree | 409e4642ab7f8f496bd8217802179e68e1a63b48 /src/obj/limit.c | |
| parent | 691f90223712426a2babdb55d7e5526b7310ca6e (diff) | |
obj: Repurpose struct obj_ops::max_attr field
Just like with struct expr_ops::max_attr, make it hold the maximum
object attribute (NFTNL_OBJ_*) value supported by this object type.
Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'src/obj/limit.c')
| -rw-r--r-- | src/obj/limit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/obj/limit.c b/src/obj/limit.c index d7b1aed..1c54bbc 100644 --- a/src/obj/limit.c +++ b/src/obj/limit.c @@ -163,7 +163,7 @@ struct obj_ops obj_ops_limit = { .name = "limit", .type = NFT_OBJECT_LIMIT, .alloc_len = sizeof(struct nftnl_obj_limit), - .max_attr = NFTA_LIMIT_MAX, + .nftnl_max_attr = __NFTNL_OBJ_LIMIT_MAX - 1, .set = nftnl_obj_limit_set, .get = nftnl_obj_limit_get, .parse = nftnl_obj_limit_parse, |
