summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorFlorian Obser <florian@cvs.openbsd.org>2019-01-27 12:41:40 +0000
committerFlorian Obser <florian@cvs.openbsd.org>2019-01-27 12:41:40 +0000
commita40886e403c7f84a7d9706c9dadabb490469174f (patch)
tree41bbba5bc2094680bfdcca5d446a75995b69ac60 /usr.sbin
parent9f897e4c10474010ceaa248eee1de3023025d521 (diff)
DoT bits.
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/unwindctl/parser.c3
-rw-r--r--usr.sbin/unwindctl/parser.h5
-rw-r--r--usr.sbin/unwindctl/unwindctl.c8
3 files changed, 12 insertions, 4 deletions
diff --git a/usr.sbin/unwindctl/parser.c b/usr.sbin/unwindctl/parser.c
index 3f8fac4bb27..57ba623b797 100644
--- a/usr.sbin/unwindctl/parser.c
+++ b/usr.sbin/unwindctl/parser.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: parser.c,v 1.1 2019/01/23 13:12:19 florian Exp $ */
+/* $OpenBSD: parser.c,v 1.2 2019/01/27 12:41:39 florian Exp $ */
/*
* Copyright (c) 2004 Esben Norby <norby@openbsd.org>
@@ -71,6 +71,7 @@ static const struct token t_status[] = {
{KEYWORD, "recursor", STATUS_RECURSOR, NULL},
{KEYWORD, "dhcp", STATUS_DHCP, NULL},
{KEYWORD, "static", STATUS_STATIC, NULL},
+ {KEYWORD, "DoT", STATUS_DOT, NULL},
{ENDTOKEN, "", STATUS, NULL}
};
diff --git a/usr.sbin/unwindctl/parser.h b/usr.sbin/unwindctl/parser.h
index 65efcb7e10b..10d8e7815e0 100644
--- a/usr.sbin/unwindctl/parser.h
+++ b/usr.sbin/unwindctl/parser.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: parser.h,v 1.1 2019/01/23 13:12:19 florian Exp $ */
+/* $OpenBSD: parser.h,v 1.2 2019/01/27 12:41:39 florian Exp $ */
/*
* Copyright (c) 2004 Esben Norby <norby@openbsd.org>
@@ -26,7 +26,8 @@ enum actions {
STATUS,
STATUS_RECURSOR,
STATUS_DHCP,
- STATUS_STATIC
+ STATUS_STATIC,
+ STATUS_DOT
};
struct parse_result {
diff --git a/usr.sbin/unwindctl/unwindctl.c b/usr.sbin/unwindctl/unwindctl.c
index 4cd62d4908b..7ffc86f42fe 100644
--- a/usr.sbin/unwindctl/unwindctl.c
+++ b/usr.sbin/unwindctl/unwindctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: unwindctl.c,v 1.1 2019/01/23 13:12:19 florian Exp $ */
+/* $OpenBSD: unwindctl.c,v 1.2 2019/01/27 12:41:39 florian Exp $ */
/*
* Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org>
@@ -142,6 +142,11 @@ main(int argc, char *argv[])
imsg_compose(ibuf, IMSG_CTL_STATUS, 0, 0, -1, &type,
sizeof(type));
break;
+ case STATUS_DOT:
+ type = STATIC_DOT_FORWARDER;
+ imsg_compose(ibuf, IMSG_CTL_STATUS, 0, 0, -1, &type,
+ sizeof(type));
+ break;
case STATUS:
type = RESOLVER_NONE;
imsg_compose(ibuf, IMSG_CTL_STATUS, 0, 0, -1, &type,
@@ -172,6 +177,7 @@ main(int argc, char *argv[])
case STATUS_RECURSOR:
case STATUS_DHCP:
case STATUS_STATIC:
+ case STATUS_DOT:
done = show_status_msg(&imsg);
break;
default: