]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: conntrack: use nf_ct_key_equal() in more places
authorFlorian Westphal <fw@strlen.de>
Thu, 28 Apr 2016 17:13:43 +0000 (19:13 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 5 May 2016 14:39:44 +0000 (16:39 +0200)
commit815eb2091e285f068bac4957f0afcc94917b89cd
tree52fe897e184d8e25f0f187d30e4d378cc3750f41
parent1c9c548daf95801955ba7f3ce6440862f6425c05
netfilter: conntrack: use nf_ct_key_equal() in more places

This prepares for upcoming change that places all conntracks into a
single, global table.  For this to work we will need to also compare
net pointer during lookup.  To avoid open-coding such check use the
nf_ct_key_equal helper and then later extend it to also consider net_eq.

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