summaryrefslogtreecommitdiffstats
path: root/sbin/dhclient/dispatch.c
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/dhclient/dispatch.c')
-rw-r--r--sbin/dhclient/dispatch.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sbin/dhclient/dispatch.c b/sbin/dhclient/dispatch.c
index 774e7acd81e..1e6a570f90a 100644
--- a/sbin/dhclient/dispatch.c
+++ b/sbin/dhclient/dispatch.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dispatch.c,v 1.168 2021/02/19 13:33:37 krw Exp $ */
+/* $OpenBSD: dispatch.c,v 1.169 2021/02/27 13:59:00 krw Exp $ */
/*
* Copyright 2004 Henning Brauer <henning@openbsd.org>
@@ -89,6 +89,9 @@ dispatch(struct interface_info *ifi, int routefd)
void (*func)(struct interface_info *);
int nfds;
+ log_debug("%s: link is %s", log_procname,
+ LINK_STATE_IS_UP(ifi->link_state) ? "up" : "down");
+
while (quit == 0 || quit == RESTART) {
if (quit == RESTART) {
quit = 0;