diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2008-11-18 11:56:20 +0100 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2008-11-18 11:56:20 +0100 |
commit | 19abb7b090a6bce88d4e9b2914a0367f4f684432 (patch) | |
tree | 3603eafaf214ef1ab200c6e5d6d05318512a3bd6 /include/net/netfilter/nf_conntrack.h | |
parent | 226c0c0ef2abdf91b8d9cce1aaf7d4635a5e5926 (diff) | |
download | kernel_goldelico_gta04-19abb7b090a6bce88d4e9b2914a0367f4f684432.zip kernel_goldelico_gta04-19abb7b090a6bce88d4e9b2914a0367f4f684432.tar.gz kernel_goldelico_gta04-19abb7b090a6bce88d4e9b2914a0367f4f684432.tar.bz2 |
netfilter: ctnetlink: deliver events for conntracks changed from userspace
As for now, the creation and update of conntracks via ctnetlink do not
propagate an event to userspace. This can result in inconsistent situations
if several userspace processes modify the connection tracking table by means
of ctnetlink at the same time. Specifically, using the conntrack command
line tool and conntrackd at the same time can trigger unconsistencies.
This patch also modifies the event cache infrastructure to pass the
process PID and the ECHO flag to nfnetlink_send() to report back
to userspace if the process that triggered the change needs so.
Based on a suggestion from Patrick McHardy.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'include/net/netfilter/nf_conntrack.h')
-rw-r--r-- | include/net/netfilter/nf_conntrack.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/netfilter/nf_conntrack.h b/include/net/netfilter/nf_conntrack.h index f11255e..2e0c536 100644 --- a/include/net/netfilter/nf_conntrack.h +++ b/include/net/netfilter/nf_conntrack.h @@ -199,7 +199,7 @@ __nf_conntrack_find(struct net *net, const struct nf_conntrack_tuple *tuple); extern void nf_conntrack_hash_insert(struct nf_conn *ct); -extern void nf_conntrack_flush(struct net *net); +extern void nf_conntrack_flush(struct net *net, u32 pid, int report); extern bool nf_ct_get_tuplepr(const struct sk_buff *skb, unsigned int nhoff, u_int16_t l3num, |