]> git.ipfire.org Git - thirdparty/nftables.git/commit
fib: Change data type of fib oifname to "ifname"
authorXiao Liang <shaw.leon@gmail.com>
Tue, 25 Feb 2025 10:02:17 +0000 (18:02 +0800)
committerFlorian Westphal <fw@strlen.de>
Tue, 25 Feb 2025 18:20:09 +0000 (19:20 +0100)
commit316d99246644268e5e0453afa3ade163fda21d7f
tree4da7b58bd15e9e7e357097bb83b23d3e519cd7c6
parent505703ed8bc2975786645b44974a85b856c8c7c6
fib: Change data type of fib oifname to "ifname"

Change data type of fib oifname from "string" to "ifname", so that it
can be matched against a set of ifnames:

    set x {
            type ifname
    }
    chain y {
            fib saddr oifname @x drop
    }

Signed-off-by: Xiao Liang <shaw.leon@gmail.com>
Signed-off-by: Florian Westphal <fw@strlen.de>
doc/primary-expression.txt
src/fib.c
tests/shell/testcases/sets/0029named_ifname_dtype_0
tests/shell/testcases/sets/dumps/0029named_ifname_dtype_0.nft