Repository navigation
Commit 79ebb5b
netfilter: nf_tables: enable set expiration time for set elements
Currently, the expiration of every element in a set or map
is a read-only parameter generated at kernel side.
This change will permit to set a certain expiration date
per element that will be required, for example, during
stateful replication among several nodes.
This patch handles the NFTA_SET_ELEM_EXPIRATION in order
to configure the expiration parameter per element, or
will use the timeout in the case that the expiration
is not set.
Signed-off-by: Laura Garcia Liebana <nevola@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>1 parent 2f0513d commit 79ebb5b
3 files changed
Lines changed: 22 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
636 | 636 | | |
637 | 637 | | |
638 | 638 | | |
639 | | - | |
| 639 | + | |
640 | 640 | | |
641 | 641 | | |
642 | 642 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3873 | 3873 | | |
3874 | 3874 | | |
3875 | 3875 | | |
| 3876 | + | |
3876 | 3877 | | |
3877 | 3878 | | |
3878 | 3879 | | |
| |||
4326 | 4327 | | |
4327 | 4328 | | |
4328 | 4329 | | |
4329 | | - | |
| 4330 | + | |
4330 | 4331 | | |
4331 | 4332 | | |
4332 | 4333 | | |
| |||
4341 | 4342 | | |
4342 | 4343 | | |
4343 | 4344 | | |
4344 | | - | |
4345 | | - | |
4346 | | - | |
| 4345 | + | |
| 4346 | + | |
| 4347 | + | |
| 4348 | + | |
| 4349 | + | |
4347 | 4350 | | |
4348 | 4351 | | |
4349 | 4352 | | |
| |||
4408 | 4411 | | |
4409 | 4412 | | |
4410 | 4413 | | |
| 4414 | + | |
4411 | 4415 | | |
4412 | 4416 | | |
4413 | 4417 | | |
| |||
4451 | 4455 | | |
4452 | 4456 | | |
4453 | 4457 | | |
| 4458 | + | |
| 4459 | + | |
| 4460 | + | |
| 4461 | + | |
| 4462 | + | |
| 4463 | + | |
| 4464 | + | |
| 4465 | + | |
| 4466 | + | |
| 4467 | + | |
4454 | 4468 | | |
4455 | 4469 | | |
4456 | 4470 | | |
| |||
4533 | 4547 | | |
4534 | 4548 | | |
4535 | 4549 | | |
4536 | | - | |
| 4550 | + | |
4537 | 4551 | | |
4538 | 4552 | | |
4539 | 4553 | | |
| |||
4735 | 4749 | | |
4736 | 4750 | | |
4737 | 4751 | | |
4738 | | - | |
| 4752 | + | |
4739 | 4753 | | |
4740 | 4754 | | |
4741 | 4755 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| |||
0 commit comments