]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nft_ct: fix expiration getter
authorFlorian Westphal <fw@strlen.de>
Wed, 6 Jul 2016 12:53:06 +0000 (14:53 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 8 Jul 2016 12:55:14 +0000 (14:55 +0200)
commit7698fe19ce47ac4d84cf9ad8b60687a2160bea8a
tree9e2c1565bebf826797ff8998124548f828f4b318
parent713c2f2f75fc165d5c171d6645a11e79436e6e11
netfilter: nft_ct: fix expiration getter

We need to compute timeout.expires - jiffies, not the other way around.
Add a helper, another patch can then later change more places in
conntrack code where we currently open-code this.

Will allow us to only change one place later when we remove per-ct timer.

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