diff options
author | Yi-Hung Wei <yihung.wei@gmail.com> | 2018-03-04 15:29:52 -0800 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2018-03-20 13:27:18 +0100 |
commit | 35d8deb80c30fdb2dee3e2dac71eab00d8a6fed5 (patch) | |
tree | d9922affc365bbb0770c0c46bba7c9263b904e95 /net/netfilter/nft_ct.c | |
parent | 6aec208786c2a54cbf6135a0242b224e845bef98 (diff) |
netfilter: conncount: Support count only use case
Currently, nf_conncount_count() counts the number of connections that
matches key and inserts a conntrack 'tuple' with the same key into the
accounting data structure. This patch supports another use case that only
counts the number of connections where 'tuple' is not provided. Therefore,
proper changes are made on nf_conncount_count() to support the case where
'tuple' is NULL. This could be useful for querying statistics or
debugging purpose.
Signed-off-by: Yi-Hung Wei <yihung.wei@gmail.com>
Acked-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter/nft_ct.c')
0 files changed, 0 insertions, 0 deletions