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/quota.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/quota.c')
-rw-r--r-- | src/obj/quota.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/obj/quota.c b/src/obj/quota.c index 6c7559a..a39d552 100644 --- a/src/obj/quota.c +++ b/src/obj/quota.c @@ -139,7 +139,7 @@ struct obj_ops obj_ops_quota = { .name = "quota", .type = NFT_OBJECT_QUOTA, .alloc_len = sizeof(struct nftnl_obj_quota), - .max_attr = NFTA_QUOTA_MAX, + .nftnl_max_attr = __NFTNL_OBJ_QUOTA_MAX - 1, .set = nftnl_obj_quota_set, .get = nftnl_obj_quota_get, .parse = nftnl_obj_quota_parse, |