path: root/include/obj.h
diff options
authorPablo Neira Ayuso <>2018-08-31 16:16:40 +0200
committerPablo Neira Ayuso <>2018-08-31 17:52:01 +0200
commit590610d45983d48bc84adc7901e6e49628dab3c9 (patch)
treeae48cbb9c1e2e533989ad38c6c748119c2640c8a /include/obj.h
parent0cae4437d11fdfc18a53a166870e71b06e8c65e1 (diff)
obj: ct_timeout: use fixed size array
Use an internal array and expose maximum size so we can just use the same array size for all protocol timeouts. This simplifies handling a bit and we don't need to set NFTNL_OBJ_CT_TIMEOUT_L4PROTO in first place. Signed-off-by: Pablo Neira Ayuso <>
Diffstat (limited to 'include/obj.h')
1 files changed, 1 insertions, 1 deletions
diff --git a/include/obj.h b/include/obj.h
index 837a54a..dfdbb73 100644
--- a/include/obj.h
+++ b/include/obj.h
@@ -39,7 +39,7 @@ struct nftnl_obj {
struct nftnl_obj_ct_timeout {
uint16_t l3proto;
uint8_t l4proto;
- uint32_t *timeout;
+ uint32_t timeout[NFTNL_CTTIMEOUT_ARRAY_MAX];
} ct_timeout;
struct nftnl_obj_limit {
uint64_t rate;