Repository navigation
Commit 11113e1
netfilter: nf_tables: support different set binding types
Currently a set binding is assumed to be related to a lookup and, in
case of maps, a data load.
In order to use bindings for set updates, the loop detection checks
must be restricted to map operations only. Add a flags member to the
binding struct to hold the set "action" flags such as NFT_SET_MAP,
and perform loop detection based on these.
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>1 parent 3dd0673 commit 11113e1
3 files changed
Lines changed: 12 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
316 | 316 | | |
317 | 317 | | |
318 | 318 | | |
| 319 | + | |
319 | 320 | | |
320 | 321 | | |
321 | 322 | | |
322 | 323 | | |
323 | 324 | | |
324 | 325 | | |
325 | 326 | | |
| 327 | + | |
326 | 328 | | |
327 | 329 | | |
328 | 330 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2811 | 2811 | | |
2812 | 2812 | | |
2813 | 2813 | | |
2814 | | - | |
| 2814 | + | |
2815 | 2815 | | |
2816 | 2816 | | |
2817 | 2817 | | |
2818 | 2818 | | |
2819 | | - | |
| 2819 | + | |
| 2820 | + | |
2820 | 2821 | | |
2821 | 2822 | | |
2822 | 2823 | | |
| |||
3312 | 3313 | | |
3313 | 3314 | | |
3314 | 3315 | | |
| 3316 | + | |
| 3317 | + | |
| 3318 | + | |
3315 | 3319 | | |
3316 | 3320 | | |
3317 | 3321 | | |
| |||
4063 | 4067 | | |
4064 | 4068 | | |
4065 | 4069 | | |
4066 | | - | |
| 4070 | + | |
| 4071 | + | |
4067 | 4072 | | |
4068 | 4073 | | |
4069 | 4074 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| 95 | + | |
| 96 | + | |
95 | 97 | | |
96 | 98 | | |
97 | 99 | | |
| |||
0 commit comments