]> git.ipfire.org Git - thirdparty/nftables.git/commit
parser: add typeof keyword for declarations
authorPablo Neira Ayuso <pablo@netfilter.org>
Tue, 30 Jul 2019 14:16:16 +0000 (16:16 +0200)
committerFlorian Westphal <fw@strlen.de>
Tue, 17 Dec 2019 22:10:01 +0000 (23:10 +0100)
commit14357cff40eda63f75efc878324aaaafbf3ed748
treeb207d0467df218e5c4b28057ccf61d554b8c962c
parent9d65f388c42eaf387a0ae91587c28a29c8582f46
parser: add typeof keyword for declarations

Add a typeof keyword to automatically use the correct type in set and map
declarations.

table filter {
set blacklist {
typeof ip saddr
}

chain input {
ip saddr @blacklist counter drop
}
}

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Florian Westphal <fw@strlen.de>
src/parser_bison.y
src/scanner.l