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/ct_timeout.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/ct_timeout.c')
-rw-r--r-- | src/obj/ct_timeout.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/obj/ct_timeout.c b/src/obj/ct_timeout.c index fedf9e3..ee86231 100644 --- a/src/obj/ct_timeout.c +++ b/src/obj/ct_timeout.c @@ -314,7 +314,7 @@ struct obj_ops obj_ops_ct_timeout = { .name = "ct_timeout", .type = NFT_OBJECT_CT_TIMEOUT, .alloc_len = sizeof(struct nftnl_obj_ct_timeout), - .max_attr = NFTA_CT_TIMEOUT_MAX, + .nftnl_max_attr = __NFTNL_OBJ_CT_TIMEOUT_MAX - 1, .set = nftnl_obj_ct_timeout_set, .get = nftnl_obj_ct_timeout_get, .parse = nftnl_obj_ct_timeout_parse, |