Skip to content

Commit 4a8678e

Browse files
kaberummakynes
authored andcommitted
netfilter: nf_tables: fix set selection when timeouts are requested
The NFT_SET_TIMEOUT flag is ignore in nft_select_set_ops, which may lead to selection of a set implementation that doesn't actually support timeouts. Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
1 parent a1e6795 commit 4a8678e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎net/netfilter/nf_tables_api.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2159,7 +2159,7 @@ nft_select_set_ops(const struct nlattr * const nla[],
21592159
features = 0;
21602160
if (nla[NFTA_SET_FLAGS] != NULL) {
21612161
features = ntohl(nla_get_be32(nla[NFTA_SET_FLAGS]));
2162-
features &= NFT_SET_INTERVAL | NFT_SET_MAP;
2162+
features &= NFT_SET_INTERVAL | NFT_SET_MAP | NFT_SET_TIMEOUT;
21632163
}
21642164

21652165
bops = NULL;

0 commit comments

Comments
 (0)