From: Pablo Neira Ayuso Date: Tue, 18 Nov 2008 10:56:20 +0000 (+0100) Subject: netfilter: ctnetlink: deliver events for conntracks changed from userspace X-Git-Tag: v2.6.29-rc1~581^2~367^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=19abb7b090a6bce88d4e9b2914a0367f4f684432;p=pandora-kernel.git 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 Signed-off-by: Patrick McHardy --- Reading git-diff-tree failed