NetworkManager/src
Beniamino Galvani ac67771bc1 policy: fix hostname change when IP method ends after activation (take 2)
Commit 9446481f4c ("policy: update system hostname when DHCP
configuration changes") tried to fix the missing hostname change when
IPv4 receives a hostname through DHCP but terminates after IPv6, by
calling update_routing_and_dns() as soon as the new DHCP configuration
was received.

It turns out that doing so is not always effective because the device
must be the "best" device (the one with default route) in order to
trigger a hostname change, but the best device status is decided
later. Updating the hostname in device_ipx_config_changed() should
cover all cases.

Fixes: 9446481f4c
https://bugzilla.redhat.com/show_bug.cgi?id=1356015
https://bugzilla.redhat.com/show_bug.cgi?id=1364393
2016-08-09 21:24:35 +02:00
..
devices team: update configuration when adding or removing slaves 2016-07-23 08:58:58 +02:00
dhcp-manager dhcp: drop an unused fariable 2016-07-13 12:26:15 +02:00
dns-manager dns: log DNS servers at TRACE level 2016-06-28 16:24:28 +02:00
dnsmasq-manager all/tests: split core part out of "nm-test-utils.h" 2016-05-17 16:48:52 +02:00
platform platform: wifi: drop old wifi data when an interface is renamed 2016-07-08 13:40:10 +02:00
ppp-manager all: fix the identfier typo 2016-05-30 16:14:04 +02:00
rdisc rdisc: preserve most-managed dhcp-level from multiple router advertisements 2016-07-08 12:35:14 +02:00
settings secret-agent: increase timeout for GetSecrets D-Bus call 2016-07-08 11:55:55 +02:00
supplicant-manager wifi: implement MAC address randomization in NetworkManager instead of supplicant 2016-06-30 08:29:56 +02:00
systemd systemd: merge branch systemd into master 2016-06-30 10:55:03 +02:00
tests systemd: merge branch systemd into master 2016-06-30 10:55:03 +02:00
vpn-manager vpn: support option to preserve previous routing information on VPN config update 2016-07-04 10:31:05 +02:00
main-utils.c build: avoid compiler warnings about non-constant format strings (-Wformat-nonliteral) 2016-06-05 12:22:01 +02:00
main-utils.h main: create parent directories of NMSTATEDIR with permissions 755 2016-03-21 13:31:40 +01:00
main.c config: refactor change-flags to be a cause/reason which triggered the change 2016-06-01 19:06:34 +02:00
Makefile.am rdisc/tests: don't link nm-fake-rdisc with non-testing NetworkManager binary 2016-07-08 12:08:02 +02:00
NetworkManager.ver daemon: disable external visibility for nmdbus_* symbols 2016-05-18 20:53:05 +02:00
NetworkManagerUtils.c device: extend MAC address handling including randomization for ethernet and wifi 2016-06-30 08:29:56 +02:00
NetworkManagerUtils.h utils: inject platform into nm_utils_complete_generic() 2016-03-15 12:56:58 +01:00
nm-activation-request.c all: don't include error->code in log messages 2016-03-03 18:54:20 +01:00
nm-activation-request.h core: separate active and applied connection 2015-09-18 17:32:11 +02:00
nm-active-connection.c active-connection: don't weak-unref parent inside notify function 2016-07-07 17:14:38 +02:00
nm-active-connection.h active-connection: add parent active connection tracking 2016-03-26 11:31:18 +01:00
nm-audit-manager.c audit: log changed properties when updating a connection 2016-04-20 17:31:01 +02:00
nm-audit-manager.h manager: add Reload() D-Bus command 2016-06-01 19:06:34 +02:00
nm-auth-manager.c auth: downgrade g_assert() to nm_assert() 2016-04-05 10:39:20 +02:00
nm-auth-manager.h all: make use of new header file "nm-default.h" 2015-08-05 15:32:40 +02:00
nm-auth-subject.c auth: embed private data NMAuthSubjectPrivate in NMAuthSubject struct 2016-05-12 10:24:36 +02:00
nm-auth-subject.h auth: embed private data NMAuthSubjectPrivate in NMAuthSubject struct 2016-05-12 10:24:36 +02:00
nm-auth-utils.c all: move NM_AUTH_PERMISSION_* defines to "nm-common-macros.h" header 2016-06-01 19:06:35 +02:00
nm-auth-utils.h all: move NM_AUTH_PERMISSION_* defines to "nm-common-macros.h" header 2016-06-01 19:06:35 +02:00
nm-bus-manager.c bus-manager: avoid leaking responses for sync bus calls 2016-03-04 19:08:25 +01:00
nm-bus-manager.h all: cleanup includes and let "nm-default.h" include "config.h" 2016-02-19 17:53:25 +01:00
nm-config-data.c config: make "ignore-carrier" a per-device configuration option 2016-06-30 08:27:17 +02:00
nm-config-data.h config: add support for per-device configuration to NetworkManager.conf 2016-06-30 08:07:35 +02:00
nm-config.c device: let device specs match on permanent MAC address 2016-06-30 08:29:55 +02:00
nm-config.h config: make "ignore-carrier" a per-device configuration option 2016-06-30 08:27:17 +02:00
nm-connectivity.c nm-dispatcher: Added new 'connectivity-state' parameter to private D-Bus API 2016-07-28 22:22:14 +02:00
nm-connectivity.h all: make use of new header file "nm-default.h" 2015-08-05 15:32:40 +02:00
nm-core-utils.c all: make MAC address randomization algorithm configurable 2016-06-30 08:32:50 +02:00
nm-core-utils.h rdisc: move public fields from NMRDisc to NMRDiscPrivate 2016-07-08 12:08:53 +02:00
nm-dcb.c all: cleanup includes and let "nm-default.h" include "config.h" 2016-02-19 17:53:25 +01:00
nm-dcb.h all: make use of new header file "nm-default.h" 2015-08-05 15:32:40 +02:00
nm-default-route-manager.c vpn,dns: for interface-less VPN connections get the ip_iface from the parent device 2016-05-27 12:54:55 +02:00
nm-default-route-manager.h default-route-manager: make NMDefaultRouteManager namespace aware 2016-03-15 12:56:58 +01:00
nm-dhcp4-config.c all: cleanup includes and let "nm-default.h" include "config.h" 2016-02-19 17:53:25 +01:00
nm-dhcp4-config.h core: port NMDhcp4Config/NMDhcp6Config to GVariant 2015-07-24 13:25:47 -04:00
nm-dhcp6-config.c all: cleanup includes and let "nm-default.h" include "config.h" 2016-02-19 17:53:25 +01:00
nm-dhcp6-config.h core: port NMDhcp4Config/NMDhcp6Config to GVariant 2015-07-24 13:25:47 -04:00
nm-dispatcher.c nm-dispatcher: Added new 'connectivity-state' parameter to private D-Bus API 2016-07-28 22:22:14 +02:00
nm-dispatcher.h nm-dispatcher: Added new 'connectivity-state' parameter to private D-Bus API 2016-07-28 22:22:14 +02:00
nm-exported-object.c build: avoid compiler warnings about non-constant format strings (-Wformat-nonliteral) 2016-06-05 12:22:01 +02:00
nm-exported-object.h exported-object: refactor list of interfaces from GSList to an array 2016-04-01 08:58:18 +02:00
nm-firewall-manager.c core: use defines for signal names in NMDnsManager and NMFirewallManager 2016-04-04 16:48:10 +02:00
nm-firewall-manager.h core: use defines for signal names in NMDnsManager and NMFirewallManager 2016-04-04 16:48:10 +02:00
nm-iface-helper.c rdisc: tighten up type and range of NMRDiscRoute.plen 2016-07-08 12:35:14 +02:00
nm-ip4-config.c core/trivial: cleanup indention for property definitions in nm-ip[46]-config.c 2016-07-06 10:20:06 +02:00
nm-ip4-config.h core: add DNS priority to NMIP4Config 2016-05-12 17:13:50 +02:00
nm-ip6-config.c core/trivial: cleanup indention for property definitions in nm-ip[46]-config.c 2016-07-06 10:20:06 +02:00
nm-ip6-config.h device: wait for termination of IPv6 DAD before proceeding to IP_CHECK 2016-05-22 14:20:05 +02:00
nm-logging.c logging: don't log the function name 2016-07-05 23:08:06 +02:00
nm-logging.h logging: don't log the function name 2016-07-05 23:08:06 +02:00
nm-manager.c manager: preserve constness in NM_MANAGER_GET_PRIVATE() and add compile-time type check 2016-07-01 15:31:41 +02:00
nm-manager.h manager: make NMManager's structs private 2016-04-28 14:20:11 +02:00
nm-multi-index.c libnm,core: fix syntax of 'transfer' annotation 2016-02-24 17:23:01 +01:00
nm-multi-index.h core: optimize NMMultiIndex by special caseing ids with one value only 2015-12-17 18:42:54 +01:00
nm-policy.c policy: fix hostname change when IP method ends after activation (take 2) 2016-08-09 21:24:35 +02:00
nm-policy.h policy: embed pointer to private data into NMPolicy 2016-04-04 15:47:22 +02:00
nm-rfkill-manager.c all: cleanup includes and let "nm-default.h" include "config.h" 2016-02-19 17:53:25 +01:00
nm-rfkill-manager.h core: skip generating gtype for rfkill enums 2015-08-19 13:49:33 +02:00
nm-route-manager.c core/trivial: rename "source" field of addresses and routes 2016-04-28 12:53:21 +02:00
nm-route-manager.h route-manager: make NMRouteManager namespace aware 2016-03-15 12:56:58 +01:00
nm-session-monitor.c session-monitor: remove wrapper functions to connect/disconnect signal 2016-05-12 09:50:21 +02:00
nm-session-monitor.h session-monitor: remove wrapper functions to connect/disconnect signal 2016-05-12 09:50:21 +02:00
nm-sleep-monitor.c sleep-monitor: add functions for delaying the suspension 2016-05-13 14:34:53 +02:00
nm-sleep-monitor.h sleep-monitor: add functions for delaying the suspension 2016-05-13 14:34:53 +02:00
nm-test-utils-core.h shared: move shared files to subdirectory "shared/nm-utils/" 2016-06-16 10:45:53 +02:00
nm-types.h platform/trivial: rename NM_LINK_TYPE_WWAN_ETHERNET to NM_LINK_TYPE_WWAN_NET 2016-06-17 11:00:10 +02:00
org.freedesktop.NetworkManager.conf dns: use DBus to make dnsmasq nameserver changes 2016-04-21 15:32:07 +02:00