netfilter: nft_dynset: fix timeout updates on 32bit
This must now use a 64bit jiffies value, else we set
a bogus timeout on 32bit.
Fixes: 8e1102d5a1
("netfilter: nf_tables: support timeouts larger than 23 days")
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
This commit is contained in:
parent
538c5672be
commit
b13468dc57
@ -81,7 +81,7 @@ static void nft_dynset_eval(const struct nft_expr *expr,
|
||||
if (priv->op == NFT_DYNSET_OP_UPDATE &&
|
||||
nft_set_ext_exists(ext, NFT_SET_EXT_EXPIRATION)) {
|
||||
timeout = priv->timeout ? : set->timeout;
|
||||
*nft_set_ext_expiration(ext) = jiffies + timeout;
|
||||
*nft_set_ext_expiration(ext) = get_jiffies_64() + timeout;
|
||||
}
|
||||
|
||||
if (sexpr != NULL)
|
||||
|
Loading…
Reference in New Issue
Block a user