NetworkManager/src
Dan Williams 38b6037f33 vpn: update DefaultRouteManager before sending state change signal
The DRM now affects DNS too, since it determines the "best" IPv4
and IPv6 configs based on it's idea of the default route.  The
Policy is also still updating DNS from a state-change handler for
VPN connections.

This led to a situation where the Policy would remove the VPN's
IP config from the DNS manager in vpn_connection_deactivated() and
call update_ip4_dns(), whereupon get_best_ip4_config()  returned
the just-removed VPN IPv4 config as "best" because the VPN connection
hadn't yet told the DefaultRouteManager to remove it.

Which meant VPN nameservers stuck around in resolv.conf for a long
time after the VPN was disconnected.

Fixes: a39a3ae4cd
2014-11-11 16:14:47 -06:00
..
devices device: fix fetching the IPv6 default route for assumed devices 2014-11-11 12:21:14 +01:00
dhcp-manager dhcp: fix adapter for sd logging macros to show file location 2014-11-11 22:40:25 +01:00
dns-manager core: drop all remaining core-internal error domains 2014-10-22 08:29:10 -04:00
dnsmasq-manager core: drop all remaining core-internal error domains 2014-10-22 08:29:10 -04:00
firewall-manager all: remove a bunch of unnecessary dbus/dbus-glib includes 2014-09-03 10:45:24 -04:00
platform core: remove unneeded check in nm_ip4_config_commit() for default routes 2014-11-07 15:23:12 +01:00
ppp-manager libnm-core: add nm-core-types.h, remove cross-includes 2014-10-28 17:17:17 -04:00
rdisc rdisc: properly handle RDNSS/DNSSL forced expiration 2014-10-29 09:13:36 -04:00
settings keyfile: don't assert when parsing invalid prefix 2014-11-11 16:09:08 +01:00
supplicant-manager libnm,core: enhance nm_utils_hexstr2bin() 2014-11-07 12:18:32 -06:00
tests libnm-core: add NMSettingIPConfig:gateway, drop NMIPAddress:gateway 2014-11-07 07:49:40 -05:00
vpn-manager vpn: update DefaultRouteManager before sending state change signal 2014-11-11 16:14:47 -06:00
main-utils.c core: split signal/pidfile/option handling into separate source file 2014-11-07 12:18:32 -06:00
main-utils.h core: split signal/pidfile/option handling into separate source file 2014-11-07 12:18:32 -06:00
main.c iface-helper: add nm-iface-helper for dynamic configure-then-quit support 2014-11-07 12:18:33 -06:00
Makefile.am iface-helper: add nm-iface-helper for dynamic configure-then-quit support 2014-11-07 12:18:33 -06:00
NetworkManagerUtils.c core: add nm_utils_ip4_property_path() 2014-11-07 12:18:33 -06:00
NetworkManagerUtils.h core: add nm_utils_ip4_property_path() 2014-11-07 12:18:33 -06:00
nm-activation-request.c all: remove a bunch of unnecessary dbus/dbus-glib includes 2014-09-03 10:45:24 -04:00
nm-activation-request.h all: fix up multiple-include-guard defines 2014-08-16 10:17:14 -04:00
nm-active-connection.c build: add the compatibility header for g_clear_pointer() 2014-11-07 17:10:39 +01:00
nm-active-connection.h vpn/core: move VPN gateway route between devices when routing changes 2014-11-06 21:17:34 -06:00
nm-auth-manager.c core: drop all remaining core-internal error domains 2014-10-22 08:29:10 -04:00
nm-auth-manager.h core: drop all remaining core-internal error domains 2014-10-22 08:29:10 -04:00
nm-auth-subject.c core: add nm_utils_get_start_time_for_pid() function 2014-10-10 11:51:40 +02:00
nm-auth-subject.h auth: support disabling POLKIT authentication entirely at compile time 2014-09-29 13:51:11 +02:00
nm-auth-utils.c auth: support disabling POLKIT authentication entirely at compile time 2014-09-29 13:51:11 +02:00
nm-auth-utils.h auth: rework polkit autorization to use DBUS interface directly 2014-09-29 13:51:11 +02:00
nm-config.c iface-helper: add nm-iface-helper for dynamic configure-then-quit support 2014-11-07 12:18:33 -06:00
nm-config.h core: add option to quit when startup is complete (rh #863515) (rh #1083683) 2014-11-07 12:18:33 -06:00
nm-connection-provider.c core: remove useless NMSettings::connections-loaded signal 2014-01-23 15:14:49 -05:00
nm-connection-provider.h all: fix up multiple-include-guard defines 2014-08-16 10:17:14 -04:00
nm-connectivity.c all: remove remaining GParamSpec name/blurb strings 2014-06-19 17:45:03 -04:00
nm-connectivity.h all: fix up multiple-include-guard defines 2014-08-16 10:17:14 -04:00
nm-dbus-manager.c core/dbus: log messages in nm-dbus-manager.c with "TRACE" priority 2014-10-05 18:24:36 +02:00
nm-dbus-manager.h core: fill in nm-types.h, clean out other headers 2014-07-23 10:56:26 -04:00
nm-dcb.c core: drop all remaining core-internal error domains 2014-10-22 08:29:10 -04:00
nm-dcb.h core: drop all remaining core-internal error domains 2014-10-22 08:29:10 -04:00
nm-default-route-manager.c policy: fix using wrong loop counter in _platform_route_sync_flush() 2014-11-10 12:30:39 +01:00
nm-default-route-manager.h policy: return best config based on the internal sorting of NMDefaultRouteManager 2014-11-07 15:23:12 +01:00
nm-dhcp4-config.c libnm: rename NetworkManager.h and NetworkManagerVPN.h 2014-08-01 14:34:40 -04:00
nm-dhcp4-config.h all: fix up multiple-include-guard defines 2014-08-16 10:17:14 -04:00
nm-dhcp6-config.c libnm: rename NetworkManager.h and NetworkManagerVPN.h 2014-08-01 14:34:40 -04:00
nm-dhcp6-config.h all: fix up multiple-include-guard defines 2014-08-16 10:17:14 -04:00
nm-dispatcher.c libnm: port to GDBus 2014-09-18 11:51:09 -04:00
nm-dispatcher.h all: fix up multiple-include-guard defines 2014-08-16 10:17:14 -04:00
nm-iface-helper.c iface-helper: add nm-iface-helper for dynamic configure-then-quit support 2014-11-07 12:18:33 -06:00
nm-ip4-config.c core: fix integer type of mtu variable 2014-11-11 13:27:33 +01:00
nm-ip4-config.h core: add nm_ip4_config_get_subnet_for_host() function 2014-11-07 15:23:11 +01:00
nm-ip6-config.c core: fix integer type of mtu variable 2014-11-11 13:27:33 +01:00
nm-ip6-config.h core: add nm_ip4_config_get_subnet_for_host() function 2014-11-07 15:23:11 +01:00
nm-logging.c core/logging: make log level and domain a C enum 2014-10-30 14:18:16 +01:00
nm-logging.h core/logging: make log level and domain a C enum 2014-10-30 14:18:16 +01:00
nm-manager.c iface-helper: add nm-iface-helper for dynamic configure-then-quit support 2014-11-07 12:18:33 -06:00
nm-manager.h iface-helper: add nm-iface-helper for dynamic configure-then-quit support 2014-11-07 12:18:33 -06:00
nm-policy.c policy: return best config based on the internal sorting of NMDefaultRouteManager 2014-11-07 15:23:12 +01:00
nm-policy.h all: fix up multiple-include-guard defines 2014-08-16 10:17:14 -04:00
nm-posix-signals.c core: merge src/config, src/logging, src/posix-signals into src/ 2014-07-30 15:56:29 -04:00
nm-posix-signals.h all: fix up multiple-include-guard defines 2014-08-16 10:17:14 -04:00
nm-properties-changed-signal.c logging: tweak logging-enabled functions 2013-12-20 09:57:13 -05:00
nm-properties-changed-signal.h core: make nm-properties-changed-signal always export the right properties 2013-05-20 16:38:33 -03:00
nm-rfkill-manager.c core: split NMRfkillManager out of NMUdevManager 2013-06-05 17:49:24 -03:00
nm-rfkill-manager.h all: fix up multiple-include-guard defines 2014-08-16 10:17:14 -04:00
nm-session-monitor-ck.c core: Remove use of NM_SESSION_MONITOR_ERROR domain 2014-10-22 09:48:58 -04:00
nm-session-monitor-null.c core: make NMSessionMonitor non-refcounted 2013-12-03 16:39:37 -05:00
nm-session-monitor-systemd.c sessions: fix return value handling for sd_uid_get_sessions() (bgo #707983) 2014-01-23 16:48:19 -06:00
nm-session-monitor.h all: fix up multiple-include-guard defines 2014-08-16 10:17:14 -04:00
nm-session-utils.c core: drop all remaining core-internal error domains 2014-10-22 08:29:10 -04:00
nm-session-utils.h core: drop all remaining core-internal error domains 2014-10-22 08:29:10 -04:00
nm-sleep-monitor-systemd.c all: remove a bunch of unnecessary dbus/dbus-glib includes 2014-09-03 10:45:24 -04:00
nm-sleep-monitor-upower.c core: convert the DBus manager to a single-ref object 2013-05-20 16:38:33 -03:00
nm-sleep-monitor.h all: fix up multiple-include-guard defines 2014-08-16 10:17:14 -04:00
nm-types.h policy: add manager for default routes and support multiple default routes 2014-11-07 15:23:12 +01:00
org.freedesktop.NetworkManager.conf dbus: kill at_console usage in permissions (bgo #707983) (rh #979416) 2014-01-23 16:48:19 -06:00