From 835a5f7248aeb618ae00dd5ae85647f34611d718 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Wed, 11 Apr 2018 11:37:04 +0200 Subject: [PATCH] connectivity: also expose fake connectivity states to dispatcher The fake states still encode whether the device have a default-route. So, they are not entirely useless. Also, don't add special handling of "#if !WITH_CONCHECK" where we don't need it. There is no fundamental difference between compiling without connectivity check and disabling connectivity checks. --- src/nm-dispatcher.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/nm-dispatcher.c b/src/nm-dispatcher.c index 29bf5c9748..2f88d468eb 100644 --- a/src/nm-dispatcher.c +++ b/src/nm-dispatcher.c @@ -631,9 +631,7 @@ _dispatcher_call (NMDispatcherAction action, if (!device_dhcp6_props) device_dhcp6_props = g_variant_ref_sink (g_variant_new_array (G_VARIANT_TYPE ("{sv}"), NULL, 0)); -#if WITH_CONCHECK connectivity_state_string = nm_connectivity_state_to_string (connectivity_state); -#endif /* Send the action to the dispatcher */ if (blocking) {