netfilter: labels: don't emit ct event if labels were not changed
authorFlorian Westphal <fw@strlen.de>
Tue, 12 Apr 2016 16:14:24 +0000 (18:14 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 18 Apr 2016 18:39:44 +0000 (20:39 +0200)
commit5a8145f7b22269adaf9e98b160a20486d1ad5669
treee72bf329e46bc1514eec4fd1db893008842feb32
parentb4ef159927150bf1d63f36330bbb5239516ceb69
netfilter: labels: don't emit ct event if labels were not changed

make the replace function only send a ctnetlink event if the contents
of the new set is different.

Otherwise 'ct label set ct label | bar'

will cause netlink event storm since we "replace" labels for each packet.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_conntrack_labels.c