From a99bbaf829eea8d2423f28c11531422bfcd21ed5 Mon Sep 17 00:00:00 2001 From: "Pablo M. Bermudo Garay" Date: Wed, 23 Aug 2017 22:42:24 +0200 Subject: src: limit stateful object support This patch adds support for a new type of stateful object: limit. Signed-off-by: Pablo M. Bermudo Garay Signed-off-by: Pablo Neira Ayuso --- include/obj.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include/obj.h') diff --git a/include/obj.h b/include/obj.h index d90919f..d17d63a 100644 --- a/include/obj.h +++ b/include/obj.h @@ -35,6 +35,13 @@ struct nftnl_obj { uint8_t l4proto; char name[16]; } ct_helper; + struct nftnl_obj_limit { + uint64_t rate; + uint64_t unit; + uint32_t burst; + uint32_t type; + uint32_t flags; + } limit; } data; }; @@ -55,6 +62,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_limit; #define nftnl_obj_data(obj) (void *)&obj->data -- cgit v1.2.3