netfilter: ctnetlink: support selective event delivery
authorPatrick McHardy <kaber@trash.net>
Wed, 3 Feb 2010 12:51:51 +0000 (13:51 +0100)
committerPatrick McHardy <kaber@trash.net>
Wed, 3 Feb 2010 12:51:51 +0000 (13:51 +0100)
commit0cebe4b4163b6373c9d24c1a192939777bc27e55
tree6a091112f27c17b7bbe8d2adcdbf45564312bba4
parent858b31330054a9ad259feceea0ad1ce5385c47f0
netfilter: ctnetlink: support selective event delivery

Add two masks for conntrack end expectation events to struct nf_conntrack_ecache
and use them to filter events. Their default value is "all events" when the
event sysctl is on and "no events" when it is off. A following patch will add
specific initializations. Expectation events depend on the ecache struct of
their master conntrack.

Signed-off-by: Patrick McHardy <kaber@trash.net>
include/linux/netfilter/nf_conntrack_common.h
include/net/netfilter/nf_conntrack_ecache.h
net/netfilter/nf_conntrack_core.c
net/netfilter/nf_conntrack_netlink.c