diff options
author | Pablo M. Bermudo Garay <pablombg@gmail.com> | 2017-08-23 22:42:24 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2017-09-04 22:28:18 +0200 |
commit | a99bbaf829eea8d2423f28c11531422bfcd21ed5 (patch) | |
tree | 38aac2ec7f8a589c044165558833797f5769f191 /include/obj.h | |
parent | 75fd5f1cd6fff96a6aef97a14f7916c984da53ef (diff) |
src: limit stateful object support
This patch adds support for a new type of stateful object: limit.
Signed-off-by: Pablo M. Bermudo Garay <pablombg@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/obj.h')
-rw-r--r-- | include/obj.h | 8 |
1 files changed, 8 insertions, 0 deletions
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 |