summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* iface-helper: log the device contextlr/log-hints-1Lubomir Rintel2017-03-241-1/+1
|
* keyfile: log the connection contextLubomir Rintel2017-03-241-1/+3
|
* vpn/vpn-connection: log the connection contextLubomir Rintel2017-03-241-6/+6
|
* settings-connection: log the connection contextLubomir Rintel2017-03-241-3/+2
|
* active-connection: log the connection contextLubomir Rintel2017-03-241-1/+5
|
* wwan/modem-broadband: log the connection contextLubomir Rintel2017-03-241-1/+4
|
* supplicant: log the device contextLubomir Rintel2017-03-241-7/+3
|
* ndisc: log the device contextLubomir Rintel2017-03-241-7/+5
|
* dhcp: log the device contextLubomir Rintel2017-03-241-2/+2
|
* devices/lldp: log the device contextLubomir Rintel2017-03-241-1/+3
|
* devices/arping-manager: log the device contextLubomir Rintel2017-03-243-6/+7
|
* devices: log the device contextLubomir Rintel2017-03-241-1/+3
|
* logging: log device and connection along with the messageLubomir Rintel2017-03-2443-75/+118
|
* logging: respect choice of journal/syslog even with --debugLubomir Rintel2017-03-244-16/+18
| | | | | | Previously, the daemon would just use syslog with LOG_PERROR when run with --debug option, even when actually configured to log into the journal. Let's respect the configuration, but preserve the logging to stderr.
* libnm: handle errors gracefully in nm_access_point_connection_valid()Thomas Haller2017-03-242-27/+39
| | | | | | | Suppress warnings and avoid assertions in nm_access_point_connection_valid(). https://bugzilla.gnome.org/show_bug.cgi?id=773675
* libnm-util/vapi: add missing dependenciesLubomir Rintel2017-03-241-1/+1
| | | | | | Works by dumb luck for in-tree build, because the .deps files that are meant for the distribution happen to be the builddir. The out-of-tree builds would generate an empty file.
* build: yet another missing dependencyLubomir Rintel2017-03-241-0/+2
|
* core/trivial: rename nm_utils_10pow() to nm_utils_exp10()Thomas Haller2017-03-244-33/+33
| | | | | | nm_utils_exp10() is a better name, because it reminds of the function exp10() from <math.h> which has a similar purpose (but whose argument is double, not gint16).
* build: configure explicit paths for dist tarball during "build_clean.sh"Thomas Haller2017-03-241-0/+16
| | | | | | | | | | | | | | "build_clean.sh" is used to generate a distribution tarball. The tarball contains pregenerated man pages with default values for paths, which in turn depend on the configure options when creating the tarball. Previously, the man page would have paths like "usr/local/etc/NetworkManager/...", which doesn't seem the best choice for a default man page. Explicitly set the installation paths. Also, --disable-dependency-tracking in this mode. It may speed up the build.
* build: fix building clients/cli/settings-docs.c (4)Thomas Haller2017-03-241-2/+2
| | | | | | | | We also dist libnm/nm-property-docs.xml, so depending on whether we build from git or source tarball, the file is in $(srcdir) or $(builddir). Fixes: d7ad13591be6bc29188ed6e421abb8dad07305f0
* man: fix default location for keyfile.path in documentationThomas Haller2017-03-241-1/+1
| | | | | Fixes: 530af7009ecca099372fd50a9b2b130c875a6524 Fixes: 90683fcb3a4a60d2902ebb7e4a47419d76acb1d8
* build: fix building clients/cli/settings-docs.c (3)Thomas Haller2017-03-241-1/+1
| | | | Fixes: d7ad13591be6bc29188ed6e421abb8dad07305f0
* build: fix building clients/cli/settings-docs.c (2)Thomas Haller2017-03-231-1/+1
| | | | Fixes: d7ad13591be6bc29188ed6e421abb8dad07305f0
* build: fix building clients/cli/settings-docs.cThomas Haller2017-03-231-1/+1
| | | | Fixes: d7ad13591be6bc29188ed6e421abb8dad07305f0
* build: don't link against libm.soThomas Haller2017-03-236-17/+9
| | | | | | | | | There are very few places where we actually use floating point or #include <math.h>. Drop that library, although we very likely still get it as indirect dependency (e.g. on my system it is still dragged in by libsystemd.so, libudev.so and libnl-3.so).
* core: add nm_utils_10pow() utilsThomas Haller2017-03-233-0/+85
|
* build: remove currently unneeded include of shared/nm-setting-metadata.h ↵Thomas Haller2017-03-231-3/+0
| | | | | | | | | | | from nmcli One day, I wish we would have more setting metadata in shared via "shared/nm-setting-metadata.h", ready for nmcli and nmtui to use (by statically linking against the internal API). Anyway, it is still unused, so drop the files from the SOURCES of nmcli.
* build: fix out-of-tree build for including "clients/cli/settings-docs.c"Thomas Haller2017-03-231-0/+3
| | | | | | | | "$(srcdir)/clients/cli/settings.c" includes "$(builddir)/clients/cli/settings-docs.c", hence, we need "-I$(builddir)/clients/cli". This basically reverts commit bbce089840e9b85808e01a5e0c265d3fa3186e61, but adds dependencies so that the build directory exists.
* shared: minor change to NM_FLAGS_HAS() and nm_utils_is_power_of_two() macrosThomas Haller2017-03-231-5/+5
| | | | | NM_FLAGS_HAS() should reject negative flag values. So check for > 0. Also change parentheses and line wrap.
* release: bump version to 1.7.2 (development)1.7.2-devLubomir Rintel2017-03-231-1/+1
|
* NEWS: update for a development snapshotLubomir Rintel2017-03-231-3/+20
|
* cli/build: drop $builddir/cli/ from the include pathLubomir Rintel2017-03-231-1/+0
| | | | | | | | | | The sources should reach files in the $builddir using #include "". Besides, it is not guarranteed to be around: CC shared/clients_cli_nmcli-nm-setting-metadata.o cc1: error: ./clients/cli: No such file or directory [-Werror=missing-include-dirs] cc1: all warnings being treated as errors Makefile:12971: recipe for target 'shared/clients_cli_nmcli-nm-setting-metadata.o' failed
* build: ensure libnm-core is around before mkenums puts files thereLubomir Rintel2017-03-231-2/+2
| | | | | | | | | | | | It's not sufficient to make nm-core-enum-types.[ch] depend on the dirstamp, because they also depend on their own stamps that are to be placed in libnm-core. $ make libnm-core/nm-core-enum-types.h.stamp GEN libnm-core/nm-core-enum-types.h /bin/sh: libnm-core/nm-core-enum-types.h.tmp: No such file or directory ../../Makefile.glib:107: recipe for target 'libnm-core/nm-core-enum-types.h.stamp' failed make: *** [libnm-core/nm-core-enum-types.h.stamp] Error 1
* ifcfg-rh: fix coding styleBeniamino Galvani2017-03-233-35/+36
|
* dns: avoid cleaning resolv.conf on exit if not neededFrancesco Giudici2017-03-231-0/+4
| | | | | | | | | | | | When rc-manager=file other services may overwrite resolv.conf at any time. We don't support merging configurations in resolv.conf but we can be more tolerant avoiding updating resolv.conf when not strictly needed. In this case, if the last write of resolv.conf had no nameservers (nor options), reset the "dns_touched" flag in order to avoid resetting resolv.conf when quitting (so, potentially overwriting some other service configuration there). https://bugzilla.redhat.com/show_bug.cgi?id=1426748
* nm-manager: Use g_dbus_message_new_method_error_literal()Iain Lane2017-03-231-18/+18
| | | | | | | | | | | | | | | | | | GLib 2.52 added a G_GNUC_PRINTF attribute to g_dbus_message_new_method_error(). This triggered warning in NetworkManager when built with -Wformat, which is an error when built with -Werror=format-security. It seems that gcc isn't smart enough to see that (foo = "bar") should be treated as a literal. Fortunately there is a g_dbus_message_new_method_error_literal() function which does not take printf-style arguments, and we don't need them, so we can use that. This patch was originally by Rico Tzschichholz <ricotz@ubuntu.com>, and was submitted to Launchpad at https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/1650972 https://bugzilla.gnome.org/show_bug.cgi?id=780444
* connectivity: remove verbose trace loggingThomas Haller2017-03-231-14/+1
|
* platform: remove debug logging messages from "nmp-object.c"Thomas Haller2017-03-231-10/+0
|
* connectivity: fix clearing timer-id in curl_timeout_cb()Thomas Haller2017-03-221-0/+2
| | | | Fixes: 7307dea9c4da6cdc53e4c23c4ce07cf51bd0c4b7
* connectivity: fix the connectivity check timeoutLubomir Rintel2017-03-221-3/+20
| | | | | | CURLOPT_CONNECTTIMEOUT or CURLOPT_TIMEOUT only make sense if libcurl is handling the I/O loop (the "easy" interface); we need to implement our own timeout.
* connectivity: conclude the check as soon as we see enough bytesLubomir Rintel2017-03-221-17/+23
| | | | No need to read the full response into memory.
* connectivity: conclude the check as soon as we see the magic headerLubomir Rintel2017-03-221-8/+3
| | | | No need to read the rest of the reponse.
* connectivity: split out the finish of the connectivity checkingLubomir Rintel2017-03-221-46/+61
| | | | | | | | Factor out the conclusion of the connectivity check. This will allow us to finish the connectivity check on other occassions than a successful connection end. Most importantly on timeouts; but it will also allow us to short-circuit the check when we conclude it without reading the full response.
* connectivity: cosmetic fixesLubomir Rintel2017-03-221-2/+3
|
* contrib/rpm: enable libpsl on Fedora onlyLubomir Rintel2017-03-221-0/+7
|
* udev: merge branch 'th/gudev-bgo780308'Thomas Haller2017-03-2224-447/+806
|\ | | | | | | https://bugzilla.gnome.org/show_bug.cgi?id=780308
| * udev: add and use nm_udev_utils_property_decode() functionThomas Haller2017-03-224-69/+58
| | | | | | | | DRY.
| * libnm/udev: cache and reuse udev instance for NMDeviceThomas Haller2017-03-223-20/+41
| | | | | | | | | | | | No need to create a separate NMUdevClient instance for all devices. Instead, have one "struct udev" instance in NMClient and pass it down during object construction.
| * udev: only create monitor in NMUdevClient when neededThomas Haller2017-03-221-26/+25
| | | | | | | | | | | | | | | | | | | | GUdevClient always creates a monitor instance, even if there are no subsystems or handlers defined. Hence the first iteration of NMUdevClient did that as well. I think that can be avoided however. We only need a monitor when there is a event handler subscribed. Contrary to GUdevClient, we know that from the very beginning.
| * udev: drop libgudev in favor of libudevThomas Haller2017-03-2222-377/+727
|/ | | | | | libgudev is just a wrapper around libudev. We can use libudev directly and drop the dependency for libgudev.