]> git.ipfire.org Git - thirdparty/nftables.git/commit
ct: add packet/byte counter support
authorFlorian Westphal <fw@strlen.de>
Sat, 12 Dec 2015 00:10:04 +0000 (01:10 +0100)
committerFlorian Westphal <fw@strlen.de>
Sat, 12 Dec 2015 00:10:04 +0000 (01:10 +0100)
commit0bfbe6146418d93b2523ea56b43213cac5d6620c
treee2bbc41841c648c69357c9dc66be1102ca6a8ffd
parent757b3ab08b8b22f230fb8e481bec78ecbfbb335a
ct: add packet/byte counter support

packets and bytes need special treatment -- we want to be able to get
packet/byte counter in either direction, but also express
'fetch in *BOTH* directions', i.e.

ct packets original + ct packets reply > 1000

This either requires a '+' expression, a new 'both' direction, or
keys where direction is optional, i.e.

ct packets > 12345 ; original + reply
ct original packets > 12345 ; original

Signed-off-by: Florian Westphal <fw@strlen.de>
Acked-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/linux/netfilter/nf_tables.h
src/ct.c
src/parser_bison.y