Commit 29b359c
committed
netfilter: nft_set_pipapo: walk over current view on netlink dump
The generation mask can be updated while netlink dump is in progress.
The pipapo set backend walk iterator cannot rely on it to infer what
view of the datastructure is to be used. Add notation to specify if user
wants to read/update the set.
Based on patch from Florian Westphal.
Fixes: 2b84e21 ("netfilter: nft_set_pipapo: .walk does not deal with generations")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>1 parent 751de20 commit 29b359c
3 files changed
Lines changed: 23 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
307 | 307 | | |
308 | 308 | | |
309 | 309 | | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
310 | 323 | | |
311 | 324 | | |
312 | 325 | | |
| 326 | + | |
313 | 327 | | |
314 | 328 | | |
315 | 329 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
626 | 626 | | |
627 | 627 | | |
628 | 628 | | |
| 629 | + | |
629 | 630 | | |
630 | 631 | | |
631 | 632 | | |
| |||
5445 | 5446 | | |
5446 | 5447 | | |
5447 | 5448 | | |
| 5449 | + | |
5448 | 5450 | | |
5449 | 5451 | | |
5450 | 5452 | | |
| |||
5518 | 5520 | | |
5519 | 5521 | | |
5520 | 5522 | | |
| 5523 | + | |
5521 | 5524 | | |
5522 | 5525 | | |
5523 | 5526 | | |
| |||
5892 | 5895 | | |
5893 | 5896 | | |
5894 | 5897 | | |
| 5898 | + | |
5895 | 5899 | | |
5896 | 5900 | | |
5897 | 5901 | | |
| |||
7376 | 7380 | | |
7377 | 7381 | | |
7378 | 7382 | | |
| 7383 | + | |
7379 | 7384 | | |
7380 | 7385 | | |
7381 | 7386 | | |
| |||
10879 | 10884 | | |
10880 | 10885 | | |
10881 | 10886 | | |
| 10887 | + | |
10882 | 10888 | | |
10883 | 10889 | | |
10884 | 10890 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2115 | 2115 | | |
2116 | 2116 | | |
2117 | 2117 | | |
2118 | | - | |
2119 | 2118 | | |
2120 | 2119 | | |
2121 | 2120 | | |
2122 | 2121 | | |
| 2122 | + | |
| 2123 | + | |
2123 | 2124 | | |
2124 | | - | |
| 2125 | + | |
2125 | 2126 | | |
2126 | 2127 | | |
2127 | 2128 | | |
| |||
0 commit comments