]> git.ipfire.org Git - thirdparty/nftables.git/commit
src: add tunnel template support
authorPablo Neira Ayuso <pablo@netfilter.org>
Thu, 21 Aug 2025 09:12:56 +0000 (11:12 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 27 Aug 2025 21:50:50 +0000 (23:50 +0200)
commit35d9c77c5745219ad6bf1c5fc7512c1c92c70457
treef4bf35cbaf821e4cd36bb055484079375cbb7056
parent5fb748243550f857bb82cddcdce642f8bf269026
src: add tunnel template support

This patch adds tunnel template support, this allows to attach a
metadata template that provides the configuration for the tunnel driver.

Example of generic tunnel configuration:

 table netdev x {
        tunnel y {
                id 10
                ip saddr 192.168.2.10
                ip daddr 192.168.2.11
                sport 10
                dport 20
                ttl 10
        }
 }

This still requires the tunnel statement to attach this metadata
template, this comes in a follow up patch.

Joint work with Fernando.

Signed-off-by: Fernando Fernandez Mancera <fmancera@suse.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/parser.h
include/rule.h
src/cache.c
src/evaluate.c
src/json.c
src/mnl.c
src/netlink.c
src/parser_bison.y
src/parser_json.c
src/rule.c
src/scanner.l