diff options
author | Arturo Borrero Gonzalez <arturo@netfilter.org> | 2018-02-25 18:30:24 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2018-02-25 23:09:02 +0100 |
commit | 8c61fa70f3cebed06b23292a3467f1dbc1b96ce9 (patch) | |
tree | 46f4550c256a590094c0e732077675d40a73051a /doc | |
parent | ba00c6b18ee2bf3bc100226ecc2e6bfd779eb482 (diff) |
meta: introduce datatype ifname_type
This new datatype is a string subtype.
It will allow us to build named maps/sets using meta keys like 'iifname',
'oifname', 'ibriport' or 'obriport'.
Example:
table inet t {
set s {
type ifname
elements = { "eth0",
"eth1" }
}
chain c {
iifname @s accept
oifname @s accept
}
}
Signed-off-by: Arturo Borrero Gonzalez <arturo@netfilter.org>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/nft.xml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/nft.xml b/doc/nft.xml index 9d21e9a1..6748265c 100644 --- a/doc/nft.xml +++ b/doc/nft.xml @@ -2572,7 +2572,7 @@ filter output icmpv6 type { echo-request, echo-reply } <row> <entry>iifname</entry> <entry>Input interface name</entry> - <entry>string</entry> + <entry>ifname</entry> </row> <row> <entry>iiftype</entry> @@ -2587,7 +2587,7 @@ filter output icmpv6 type { echo-request, echo-reply } <row> <entry>oifname</entry> <entry>Output interface name</entry> - <entry>string</entry> + <entry>ifname</entry> </row> <row> <entry>oiftype</entry> @@ -2612,12 +2612,12 @@ filter output icmpv6 type { echo-request, echo-reply } <row> <entry>ibriport</entry> <entry>Input bridge interface name</entry> - <entry>string</entry> + <entry>ifname</entry> </row> <row> <entry>obriport</entry> <entry>Output bridge interface name</entry> - <entry>string</entry> + <entry>ifname</entry> </row> <row> <entry>pkttype</entry> |