summaryrefslogtreecommitdiffstats
path: root/include/obj.h
diff options
context:
space:
mode:
authorHarsha Sharma <harshasharmaiitr@gmail.com>2018-08-10 20:23:39 +0530
committerPablo Neira Ayuso <pablo@netfilter.org>2018-08-13 12:29:43 +0200
commit0adceeab1597a3de87f5e0cc8ef364b0e1df8a4f (patch)
tree6e6f289b1f9c1c5ca98305788832a26181c665ef /include/obj.h
parentb220a86d0975e38940942cbad39beb4f52d9ffc6 (diff)
src: add ct timeout support
Add support for ct timeout objects, used to assign connection tracking timeout policies. Signed-off-by: Harsha Sharma <harshasharmaiitr@gmail.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/obj.h')
-rw-r--r--include/obj.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/obj.h b/include/obj.h
index 9363a69..837a54a 100644
--- a/include/obj.h
+++ b/include/obj.h
@@ -36,6 +36,11 @@ struct nftnl_obj {
uint8_t l4proto;
char name[16];
} ct_helper;
+ struct nftnl_obj_ct_timeout {
+ uint16_t l3proto;
+ uint8_t l4proto;
+ uint32_t *timeout;
+ } ct_timeout;
struct nftnl_obj_limit {
uint64_t rate;
uint64_t unit;
@@ -91,6 +96,7 @@ struct obj_ops {
extern struct obj_ops obj_ops_counter;
extern struct obj_ops obj_ops_quota;
extern struct obj_ops obj_ops_ct_helper;
+extern struct obj_ops obj_ops_ct_timeout;
extern struct obj_ops obj_ops_limit;
extern struct obj_ops obj_ops_tunnel;