summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* device: add dhcp_schedule_restart() helperbg/ip-method-fail-fixes-bgo741347Beniamino Galvani2016-04-281-27/+42
|
* device: retry DHCPv6 when a lease expiresBeniamino Galvani2016-04-281-8/+30
| | | | | | | | Make DHCPv6 more robust WRT temporary failures of servers by retrying DHCP for a predefined number of times at regular intervals when the lease expires. https://bugzilla.gnome.org/show_bug.cgi?id=741347
* device: retry DHCPv4 when a lease expiresBeniamino Galvani2016-04-281-8/+32
| | | | | | | | Make DHCPv4 more robust WRT temporary failures of servers by retrying DHCP for a predefined number of times at regular intervals when the lease expires. https://bugzilla.gnome.org/show_bug.cgi?id=741347
* device: group DHCP6 private membersBeniamino Galvani2016-04-281-64/+66
|
* device: group DHCP4 private membersBeniamino Galvani2016-04-281-31/+33
|
* device: fail activation immediately only when may-fail=noBeniamino Galvani2016-04-284-61/+122
| | | | | | | | Introduce the nm_device_ip_method_failed() function to check if the failure of an IP method should cause the activation to fail, and use it where appropriate. http://bugzilla.gnome.org/show_bug.cgi?id=741347
* cli: remove version check against NMFrancesco Giudici2016-04-2876-1370/+3
| | | | | | | | | | | | When performing NM package upgrade the new version of nmcli will be immediately available while NM daemon will not, as it would not restart in order to avoid to disrupt connectivity. This could create issues with tools leveraging on nmcli output (till reboot). As apart from this case it is very unlikely that a user can have this nmcli / NM daemon version mismatch situation, the check could cause more harm than benefit in real user case scenarios. https://bugzilla.redhat.com/show_bug.cgi?id=1291785
* device/ethernet: ignore s390 'portname' attribute when not setBeniamino Galvani2016-04-281-6/+11
| | | | | | | | | The 'portname' sysfs attribute of s390 devices is deprecated since kernel 4.4 and always set to 'no portname required'. But even on older kernels such value must be interpreted as an unset portname and thus ignored. https://bugzilla.redhat.com/show_bug.cgi?id=1327204
* manager: use _LOGx() macros in nm-managerThomas Haller2016-04-271-36/+42
| | | | They give each logging message a "manager: " prefix.
* merge: branch 'bg/gateway-never-default-rh1313091-v2'Beniamino Galvani2016-04-274-1/+81
|\ | | | | | | https://bugzilla.redhat.com/show_bug.cgi?id=1313091
| * ifcfg-rh: emit a warning when DEFROUTE=no and GATEWAY is setBeniamino Galvani2016-04-271-0/+5
| |
| * libnm-core: remove gateway when never-default=yes in NMSettingIPConfigBeniamino Galvani2016-04-273-1/+76
|/ | | | | | | | | | Having a gateway defined when never-default=yes causes troubles in connection matching and anyway makes no sense. If the combination is found, remove the gateway during the normalization phase. https://bugzilla.redhat.com/show_bug.cgi?id=1313091
* settings: fix write_hostname for relative-symbolic linksThomas Haller2016-04-271-1/+1
| | | | | | g_file_read_link() "reads" the symbolic link. If it's a relative path, we get a relative path which is anchored on @file. We must resolve that to be absolute.
* settings: remove unnecessary "file" field for hostname from NMSettingPrivateThomas Haller2016-04-271-7/+5
|
* utils: add nm_utils_read_link_absolute()Thomas Haller2016-04-272-0/+35
|
* settings: add notification after connections loadFrancesco Giudici2016-04-271-0/+1
| | | | | | | The notification was missing from a long time. The issue has been exposed only now due to the c57e5a6b66b8a29d4c16dacf9aafc7ee04a27243 fix which properly implemented the "startup-complete" notification substituting out of place code which masked the bug.
* tui: quit from top-level form when exitingBeniamino Galvani2016-04-271-1/+15
| | | | | | | The top-level form was left on screen after exit (this is visible only on some types of terminal as vt100), breaking automated tests. Fixes: b2fb80928e27dc29240e604bab4f391302fc71f3
* settings: disconnect connection_ready_changed() handler when reaching ↵Thomas Haller2016-04-261-2/+12
| | | | | | | | startup_complete We connect to notify::startup-complete signal of each connection, but after we signal startup-complete once, we don't need that signal anymore. Disconnect.
* dns: merge branch 'th/dns-rc-manager-bgo765387'Thomas Haller2016-04-264-154/+151
|\ | | | | | | https://bugzilla.gnome.org/show_bug.cgi?id=765387
| * dns: add new rc-manager=unmanagedThomas Haller2016-04-262-1/+6
| | | | | | | | | | | | | | | | | | | | | | The following settings are effectively identical: dns=none,rc-manager=*any* dns=none,rc-manager=unmanaged dns=default,rc-manager=unmanaged The new setting is only there for completeness and only makes sense for a dns plugin.
| * dns: merge the dns "mode" and "rc-manager"Thomas Haller2016-04-263-115/+82
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Already previously, the mode and rc-manager were intertwined in a complicated way: - dns=none effectively disables rc-manager. - if resolv.conf was immutable, it would disable the rc-manager by setting "resolv_conf_mode=NM_DNS_MANAGER_RESOLV_CONF_UNMANAGED". - resolv_conf_mode was anyway a redundant piece of information to rc_manager. Now there are only two relevant settings: priv->plugin and priv->rc_manager. And they can be set independently from each other. Before that was not possible. For example, you could not set a dns plugin with rc-manager=unmanaged (the only way to achive that was via an immutable resolv.conf or by having rc-manager=symlink and let resolv.conf link somewhere else.
| * dns: when clearing "plugin" always disconnect signal handlersThomas Haller2016-04-261-6/+14
| |
| * dns: initialize rc-manager in init_resolv_conf_mode()Thomas Haller2016-04-261-24/+13
| | | | | | | | | | | | | | | | The "dns" and "rc-manager" properties are strongly related. Initialize them together in init_resolv_conf_mode(). One difference is, that we now set rc_manager before setting the mode. But that shouldn't matter.
| * dns: split parsing of rc-manager out of init_resolv_conf_manager()Thomas Haller2016-04-262-25/+51
| | | | | | | | | | Makes more sense in the next commit, when init_resolv_conf_manager() gets merged with init_resolv_conf_mode(). Bear with me.
| * dns: rename "rc-manager=none" to "symlink"Thomas Haller2016-04-263-12/+14
|/ | | | | | We already have "rc-manager=file", rename "rc-manager=none" to "symlink" because that better describes what it is actually doing. Of course, the old name is still accepted.
* device: merge branch 'th/default-wired-connection-stable-uuid-bgo765464'Thomas Haller2016-04-268-104/+163
|\ | | | | | | https://bugzilla.gnome.org/show_bug.cgi?id=765464
| * device: generate stable UUID for default-wired-connectionThomas Haller2016-04-262-7/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Generate a stable connection UUID for the default-wired-connection. Otherwise, on every reboot, the UUID changes although the generated connection is the same. But also hash into the UUID the machine-id, the device name and the hardware address. So, the UUID is only the same if the connection is identical in every aspect. Also, the UUID is used as Network_ID for the stable-privacy address generation mode. It is bad to re-create different UUIDs on every boot as it causes different addresses.
| * core: use nm_utils_machine_id_read() in "nm-dhcp-client.c"Thomas Haller2016-04-261-48/+10
| |
| * core: add nm_utils_machine_id_read() and parse() utilThomas Haller2016-04-264-0/+63
| |
| * core: add nm_utils_get_secret_key() utilThomas Haller2016-04-263-49/+69
|/
* linux-platform: re-read the link type if the name changedLubomir Rintel2016-04-261-1/+4
| | | | | | | | | | | | | | | | | For some device types, we use the DEVTYPE from sysfs to determine the link type. However, the way we read from sysfs can race with device renames and we could miss the chance to read DEVTYPE correctly. This doesn't completely fix the sysfs race, but cures the boot-time race with systemd renaming the device while we are initializing the link. We ideally should use GUDev for all sysfs accesses, but that would need some more work for this particular case as currently we need the link type before we have an udev device instance. https://bugzilla.gnome.org/show_bug.cgi?id=764803 Co-Authored-By: Beniamino Galvani <bgalvani@redhat.com>
* dhcp/systemd: actually hook up information-only modeDan Williams2016-04-251-0/+4
| | | | | Fixes: 89d1e466157839096b446068a780cb2563424a5a Tested-by: Celti on IRC
* libnm/doc: fix documentation of NMSettingIP6Config:addr-gen-modeThomas Haller2016-04-251-3/+5
| | | | | The value cannot be unset. It must be set to one of the two currently supported values.
* bluetooth: add a missing GError initializerLubomir Rintel2016-04-251-1/+1
| | | | (cherry picked from commit 3ad7be3e6a124fe9e279ec6d9de06c423ca50cc2)
* settings: merge branch 'th/settings-read-hostname'Thomas Haller2016-04-251-16/+52
|\
| * settings: refactor read_hostname_*()Thomas Haller2016-04-251-20/+16
| |
| * settings: cleanup #if blocks for HOSTNAME_PERSIST_*Thomas Haller2016-04-251-12/+12
| |
| * settings: fix Slackware hostname settingPatrick J. Volkerding2016-04-251-0/+40
|/ | | | https://mail.gnome.org/archives/networkmanager-list/2016-April/msg00075.html
* sleep-monitor-systemd: merge branch 'th/sleep-monitor-sd-cleanup'Thomas Haller2016-04-251-49/+92
|\ | | | | | | Some cleanup of "nm-sleep-monitor-systemd.c"
| * sleep-monitor: disconnect signal handlers from D-Bus proxy on destroyThomas Haller2016-04-251-4/+13
| | | | | | | | | | The lifetime of the proxy is not necesarily the same as the lifetime of the NMSleepMonitor instance. Disconnect the signals during dispose().
| * sleep-monitor: don't localize messages in core daemonThomas Haller2016-04-251-1/+1
| | | | | | | | | | | | The daemon does not run with a particular locale of a user. Localizing makes no sense (at least, we don't do it usually and it would make logging localized).
| * sleep-monitor: properly handle cancelling of "Inhibit" D-Bus callThomas Haller2016-04-251-17/+28
| | | | | | | | | | | | | | | | | | | | As we don't take a reference on @self during the asynchronous request, we must properly support cancelling in case of early destruction. I think, it's gdbus' responsibility not to leak any file descriptors when cancelling a D-Bus request that returns file descriptors. Thus, our usual pattern works here too.
| * sleep-monitor: handle early destruction of NMSleepMonitor instanceThomas Haller2016-04-251-4/+12
| | | | | | | | | | When destroing the sleep monitor before the D-Bus proxy is created, we must cancel creation of the proxy.
| * sleep-monitor: drop unused class methods for signalsThomas Haller2016-04-251-10/+2
| |
| * sleep-monitor: implement dispose() instead of finalize()Thomas Haller2016-04-251-6/+5
| | | | | | | | | | To release resources, dispose() is preferred over finalize() because it is called earlier.
| * sleep-monitor: don't return value from drop_inhibitor()Thomas Haller2016-04-251-4/+2
| |
| * sleep-monitor: use LOG macros in "nm-sleep-monitor-systemd.c"Thomas Haller2016-04-251-11/+37
|/
* lldp: fix crash in nm_device_update_dynamic_ip_setup() due to uninitialized ↵Thomas Haller2016-04-251-1/+1
| | | | | | @error Fixes: 07a9364d9c151bc3086a863759d31d0857ae011e
* libnm/vpn: consider VPN service aliases in nm_vpn_plugin_info_new_search_file()Thomas Haller2016-04-251-4/+14
| | | | Fixes: 4271c9650c1cfcbd487cc471099b1c0c9bbfa290
* tools: add forgotten file to distLubomir Rintel2016-04-231-1/+2
| | | | Fixes: f15c412015647b378a187bdf98ccf8cd75eb0475