summaryrefslogtreecommitdiffstats
path: root/validate.c
diff options
context:
space:
mode:
Diffstat (limited to 'validate.c')
-rw-r--r--validate.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/validate.c b/validate.c
index 85b69af..f94a071 100644
--- a/validate.c
+++ b/validate.c
@@ -314,6 +314,12 @@ dt_type_bool(struct dt_state *s, int nargs)
}
static bool
+dt_type_string(struct dt_state *s, int nargs)
+{
+ return true;
+}
+
+static bool
dt_type_ip4addr(struct dt_state *s, int nargs)
{
struct in6_addr a;
@@ -682,6 +688,7 @@ static struct dt_fun dt_types[] = {
{ "float", dt_type_float },
{ "ufloat", dt_type_ufloat },
{ "bool", dt_type_bool },
+ { "string", dt_type_string },
{ "ip4addr", dt_type_ip4addr },
{ "ip6addr", dt_type_ip6addr },
{ "ipaddr", dt_type_ipaddr },