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/secmark.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/secmark.c')
-rw-r--r-- | src/obj/secmark.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/obj/secmark.c b/src/obj/secmark.c index e5c24b3..c78e35f 100644 --- a/src/obj/secmark.c +++ b/src/obj/secmark.c @@ -111,7 +111,7 @@ struct obj_ops obj_ops_secmark = { .name = "secmark", .type = NFT_OBJECT_SECMARK, .alloc_len = sizeof(struct nftnl_obj_secmark), - .max_attr = NFTA_SECMARK_MAX, + .nftnl_max_attr = __NFTNL_OBJ_SECMARK_MAX - 1, .set = nftnl_obj_secmark_set, .get = nftnl_obj_secmark_get, .parse = nftnl_obj_secmark_parse, |