Commit 33c7aba
committed
netfilter: nf_tables: do not set up extensions for end interval
Elements with an end interval flag set on do not store extensions. The
global set definition is currently setting on the timeout and stateful
expression for end interval elements.
This leads to skipping end interval elements from the set->ops->walk()
path as the expired check bogusly reports true.
Moreover, do not set up stateful expressions for elements with end
interval flag set on since this is never used.
Fixes: 6503842 ("netfilter: nf_tables: allow to specify stateful expression in set definition")
Fixes: 8d8540c ("netfilter: nft_set_rbtree: add timeout support")
Signed-off-by: Pablo Neira Ayuso <[email protected]>1 parent 52d1aa8 commit 33c7aba
1 file changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5958 | 5958 | | |
5959 | 5959 | | |
5960 | 5960 | | |
5961 | | - | |
| 5961 | + | |
| 5962 | + | |
5962 | 5963 | | |
5963 | 5964 | | |
5964 | 5965 | | |
| |||
6024 | 6025 | | |
6025 | 6026 | | |
6026 | 6027 | | |
6027 | | - | |
| 6028 | + | |
| 6029 | + | |
6028 | 6030 | | |
6029 | 6031 | | |
6030 | 6032 | | |
| |||
0 commit comments