Pablo Neira Ayuso 1a4e7c6fd6 src: support for timeout never in elements
Allow to specify elements that never expire in sets with global
timeout.

    set x {
        typeof ip saddr
        timeout 1m
        elements = { 1.1.1.1 timeout never,
                     2.2.2.2,
                     3.3.3.3 timeout 2m }
    }

in this example above:

 - 1.1.1.1 is a permanent element
 - 2.2.2.2 expires after 1 minute (uses default set timeout)
 - 3.3.3.3 expires after 2 minutes (uses specified timeout override)

Use internal NFT_NEVER_TIMEOUT marker as UINT64_MAX to differenciate
between use default set timeout and timeout never if "timeout N" is used
in set declaration. Maximum supported timeout in milliseconds which is
conveyed within a netlink attribute is 0x10c6f7a0b5ec.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
2024-09-17 21:26:50 +02:00
..
2024-07-30 01:13:46 +02:00
2024-08-26 18:38:13 +02:00
2023-03-11 22:13:28 +01:00
2021-12-07 12:23:21 +01:00
2023-09-28 20:34:09 +02:00
2018-03-31 20:31:26 +02:00
2024-08-26 18:38:13 +02:00
2019-08-09 13:46:51 +02:00
2023-01-02 15:36:33 +01:00
2024-04-19 19:21:21 +02:00
2021-05-03 00:18:04 +02:00
2018-09-21 12:06:27 +02:00