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 /include/obj.h | |
| 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 'include/obj.h')
| -rw-r--r-- | include/obj.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/obj.h b/include/obj.h index d848ac9..6d2af8d 100644 --- a/include/obj.h +++ b/include/obj.h @@ -104,7 +104,7 @@ struct obj_ops { const char *name; uint32_t type; size_t alloc_len; - int max_attr; + int nftnl_max_attr; int (*set)(struct nftnl_obj *e, uint16_t type, const void *data, uint32_t data_len); const void *(*get)(const struct nftnl_obj *e, uint16_t type, uint32_t *data_len); int (*parse)(struct nftnl_obj *e, struct nlattr *attr); |
