From 8c61fa70f3cebed06b23292a3467f1dbc1b96ce9 Mon Sep 17 00:00:00 2001 From: Arturo Borrero Gonzalez Date: Sun, 25 Feb 2018 18:30:24 +0100 Subject: 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 Signed-off-by: Pablo Neira Ayuso --- include/meta.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/meta.h') diff --git a/include/meta.h b/include/meta.h index 47b16c4b..6086a71c 100644 --- a/include/meta.h +++ b/include/meta.h @@ -38,5 +38,6 @@ extern const struct datatype gid_type; extern const struct datatype uid_type; extern const struct datatype devgroup_type; extern const struct datatype pkttype_type; +extern const struct datatype ifname_type; #endif /* NFTABLES_META_H */ -- cgit v1.2.3