OSDN Git Service

netfilter: nft_last: honor NFTA_LAST_SET on restoration
authorPablo Neira Ayuso <pablo@netfilter.org>
Mon, 5 Jul 2021 15:45:36 +0000 (17:45 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 6 Jul 2021 12:15:13 +0000 (14:15 +0200)
commit6ac4bac4ce48604cf0f4b04d61884552520ca55e
treec45d8fcb935d8c9338ed3946dfc258941051f471
parentcf4466ea47db891be785f867ca7f99e0cd9898c6
netfilter: nft_last: honor NFTA_LAST_SET on restoration

NFTA_LAST_SET tells us if this expression has ever seen a packet, do not
ignore this attribute when restoring the ruleset.

Fixes: 836382dc2471 ("netfilter: nf_tables: add last expression")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nft_last.c