diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2020-03-24 18:38:51 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2020-03-26 15:10:26 +0100 |
commit | b119428c934c7d356023828fed6a83b12bbcaa1f (patch) | |
tree | 78fd4c408ab47ac158059672f961b82c9c8688ab /include | |
parent | 15a62af1868efa5df504f68afe50300fa7667f82 (diff) |
src: add support for flowtable counter
Allow users to enable flow counters via control plane toggle, e.g.
table ip x {
flowtable y {
hook ingress priority 0;
counter;
}
chain z {
type filter hook ingress priority filter;
flow add @z
}
}
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/rule.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/rule.h b/include/rule.h index 70c8c4cf..db11b1d6 100644 --- a/include/rule.h +++ b/include/rule.h @@ -491,6 +491,7 @@ struct flowtable { const char **dev_array; struct expr *dev_expr; int dev_array_len; + uint32_t flags; unsigned int refcnt; }; |