summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorFlorian Obser <florian@cvs.openbsd.org>2019-11-25 17:36:49 +0000
committerFlorian Obser <florian@cvs.openbsd.org>2019-11-25 17:36:49 +0000
commit319491659fd168a8810e3122169b6b8b90109bad (patch)
tree90d56bccbfa6b42baf447316e61fb8a6b5b2562e /sbin
parenta953a9c661f8233ff66d4438e89f2c37587b057d (diff)
Signal what happened, not what needs doing.
The frontend doesn't know.
Diffstat (limited to 'sbin')
-rw-r--r--sbin/unwind/frontend.c4
-rw-r--r--sbin/unwind/resolver.c4
-rw-r--r--sbin/unwind/unwind.h4
3 files changed, 6 insertions, 6 deletions
diff --git a/sbin/unwind/frontend.c b/sbin/unwind/frontend.c
index dd807550f24..e81c7b247ef 100644
--- a/sbin/unwind/frontend.c
+++ b/sbin/unwind/frontend.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: frontend.c,v 1.38 2019/11/22 15:31:25 florian Exp $ */
+/* $OpenBSD: frontend.c,v 1.39 2019/11/25 17:36:48 florian Exp $ */
/*
* Copyright (c) 2018 Florian Obser <florian@openbsd.org>
@@ -1015,7 +1015,7 @@ handle_route_message(struct rt_msghdr *rtm, struct sockaddr **rti_info)
switch (rtm->rtm_type) {
case RTM_IFINFO:
- frontend_imsg_compose_resolver(IMSG_RECHECK_RESOLVERS, 0, NULL,
+ frontend_imsg_compose_resolver(IMSG_NETWORK_CHANGED, 0, NULL,
0);
break;
case RTM_PROPOSAL:
diff --git a/sbin/unwind/resolver.c b/sbin/unwind/resolver.c
index dc5cf0a7140..76199452d62 100644
--- a/sbin/unwind/resolver.c
+++ b/sbin/unwind/resolver.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: resolver.c,v 1.75 2019/11/23 08:57:52 florian Exp $ */
+/* $OpenBSD: resolver.c,v 1.76 2019/11/25 17:36:48 florian Exp $ */
/*
* Copyright (c) 2018 Florian Obser <florian@openbsd.org>
@@ -516,7 +516,7 @@ resolver_dispatch_frontend(int fd, short event, void *bula)
new_static_dot_forwarders();
}
break;
- case IMSG_RECHECK_RESOLVERS:
+ case IMSG_NETWORK_CHANGED:
schedule_recheck_all_resolvers();
break;
case IMSG_REPLACE_DNS:
diff --git a/sbin/unwind/unwind.h b/sbin/unwind/unwind.h
index 35d4fbca6a6..3dda5fc5136 100644
--- a/sbin/unwind/unwind.h
+++ b/sbin/unwind/unwind.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: unwind.h,v 1.33 2019/11/22 15:31:25 florian Exp $ */
+/* $OpenBSD: unwind.h,v 1.34 2019/11/25 17:36:48 florian Exp $ */
/*
* Copyright (c) 2018 Florian Obser <florian@openbsd.org>
@@ -116,7 +116,7 @@ enum imsg_type {
IMSG_NEW_TA,
IMSG_NEW_TAS_ABORT,
IMSG_NEW_TAS_DONE,
- IMSG_RECHECK_RESOLVERS,
+ IMSG_NETWORK_CHANGED,
IMSG_CONNECT_CAPTIVE_PORTAL_HOST,
IMSG_BLFD,
IMSG_REPLACE_DNS,