summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* wifi: only try adding supplicant interface 5 times on errors (bgo #753971)jk/supplicant-fix-bgo753971Jiří Klimeš2015-11-251-1/+36
| | | | | | | | | | | | | | | | | | | | | When wpa_supplicant keeps returning an error, NetworkManager was trying over and over again. Which resulted in endless messages: <error> [1448462154.584916] [supplicant-manager/nm-supplicant-interface.c:879] interface_add_cb(): (AAA): error adding interface: wpa_supplicant couldn't grab this interface. NetworkManager[17073]: <info> (AAA): supplicant interface state: starting -> down Testcase: $ iw list | grep -A 3 "interface combinations" interface combinations are not supported HT Capability overrides: * MCS: ff ff ff ff ff ff ff ff ff ff * maximum A-MSDU length $ sudo iw wlan0 interface add AAA type managed ... $ sudo iw dev AAA del Fixes: 3a2e6de0d30217753c825ba1f20e589c1f647780 https://bugzilla.gnome.org/show_bug.cgi?id=753971
* wifi: (trivial) remove unused failed_link_countJiří Klimeš2015-11-251-1/+0
|
* clients: check errors of polkit_unix_session_new_for_process_sync()Jiří Klimeš2015-11-251-3/+5
| | | | | | | polkit_unix_session_new_for_process_sync() can fail. And calling polkit_agent_listener_register() with NULL PolkitSubject results in errors. https://bugzilla.gnome.org/show_bug.cgi?id=758625
* gitignore: ignore ifnet/tests/check_ifnet binaryThomas Haller2015-11-251-0/+8
| | | | | This file no longer exists on master, but it is annoying when switching branches.
* merge: branch 'bg/create-sw-devices-bgo749369-tun'Beniamino Galvani2015-11-2531-46/+1796
|\ | | | | | | | | | | Add support for creating TUN/TAP devices. https://bugzilla.gnome.org/show_bug.cgi?id=749369
| * nmcli/bash-completion: add completion for 'tun' connection modeBeniamino Galvani2015-11-251-1/+1
| |
| * libnm-glib: print HW address of generic devices in test toolBeniamino Galvani2015-11-251-0/+9
| | | | | | | | | | This is not particularly useful per se, but allows to check that generic devices are instantiated properly.
| * libnm-glib: add support for TUN devicesBeniamino Galvani2015-11-254-2/+37
| | | | | | | | | | | | | | | | | | Since libnm is the preferred way to interact with NM now, we don't want to add new device types to libnm-glib. Make libnm-glib recognize TUN devices as generic ones and modify NMDeviceGeneric to use the correct D-Bus interface based on the actual device type.
| * libnm-glib: refactor _nm_device_type_for_path()Beniamino Galvani2015-11-252-16/+21
| | | | | | | | | | | | | | Refactor nm-device.c to expose a private _nm_device_type_for_path() function which can be used by subclasses to query the actual device type. In particular, NMDeviceGeneric will use the result of this function to figure out which interface to use for the D-Bus proxy.
| * device/tun: remove unused property enum FLAGSBeniamino Galvani2015-11-251-1/+0
| |
| * libnm: add NMDeviceTunBeniamino Galvani2015-11-258-0/+534
| |
| * device/tun: support device creationBeniamino Galvani2015-11-255-19/+182
| | | | | | | | | | Allow the creation of a new TUN/TAP interface when a tun connection is activated.
| * platform: support creation of TUN/TAP devicesBeniamino Galvani2015-11-253-4/+110
| |
| * cli: add support for tun settingsBeniamino Galvani2015-11-252-3/+365
| | | | | | | | Add nmcli support for adding and modifying TUN/TAP connections.
| * libnm-core: add NMSettingTunBeniamino Galvani2015-11-2510-0/+537
|/ | | | | Add a new NMSettingTun which contains configuration properties for TUN/TAP interfaces.
* nm-device: don't try to re-add LL address if the devices is torn downLubomir Rintel2015-11-251-2/+4
| | | | Fixes: 9f92bb1f630d20674b83ad96a4d3fea299d9d12f
* core: don't handle SIGUSR1 and SIGUSR2 signals for pre 2.36.0 glibThomas Haller2015-11-251-2/+5
| | | | | | https://bugzilla.gnome.org/show_bug.cgi?id=758614 Reported-by: Glenn Washburn <development@efficientek.com>
* nm-glib: add nm_glib_check_version() utilThomas Haller2015-11-251-0/+11
|
* dhcp-helper: call g_type_init() to support pre 2.36.0 glibGlenn Washburn2015-11-251-0/+2
| | | | | | https://bugzilla.gnome.org/show_bug.cgi?id=758614 [thaller@redhat.com: original patch modified to use nm_g_type_init()]
* systemd: add an initializerLubomir Rintel2015-11-241-1/+1
| | | | Fixes build with exceptions enabled.
* build: add a missing file into distLubomir Rintel2015-11-241-1/+2
| | | | Fixes: aa22b2d87f28ed491fec3f1b40fc9d7b3042b926
* po: remove special characters from translationsLubomir Rintel2015-11-2426-442/+50
| | | | | | | | | | | | | Makes Zanata unhappy, in the Java way. for i in po/*.po; do awk ' /^" 0 = / { print "\"%s\""; n=1; next; } /^" 8 = / { n=0; next } { if (!n) print }' $i >x mv x $i done Fixes: 3641ddb00a19e7b0e094e8d9881221fdb87ce9c0
* cli: make a prompt a translatable string in do_connection_clone()Jiří Klimeš2015-11-241-1/+1
| | | | Fixes: 0c65b289601d46edb0a950e291ddd376e368ccfd
* device: use nm_utils_find_helper() to find out ping/ping6 binary (bgo #758566)Jiří Klimeš2015-11-241-2/+2
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=758566
* ifcfg-rh: remove unused selinux.h include from "plugin.c"Thomas Haller2015-11-241-4/+0
|
* tests: merge branch 'th/test-run-valgrind'Thomas Haller2015-11-243-21/+184
|\
| * nmtst/valgrind: allow calling 'run-test-valgrind.sh' script directlyThomas Haller2015-11-242-10/+85
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When you want to run valgrind for a test, you either had to invoke valgrind manually, or doing it via `make check` (provided you configured --with-valgrind). Make it more convenient to run valgrind by passing the test to run to the "run-test-valgrind.sh" wrapper. This also allows to pass -p/-s to the test, which is not possible during `make check` because selecting tests conflicts with "--tap". The following invocations are largely equivalent and work as expected: $ ./tools/run-test-valgrind.sh ./src/platform/tests/test-link-linux -p /link/software/detect/vlan $ NMTST_DEBUG=no-debug,p=/link/software/detect/vlan ./tools/run-test-valgrind.sh ./src/platform/tests/test-link-linux
| * nmtst: support -p and -s arguments from gtestutils via $NMTST_DEBUGThomas Haller2015-11-241-1/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For tests based on glib's test framework, you can select which tests to run by passing -p/-s on the command line. Usually, we want to invoke our tests via `make check` which conveniently calls valgrind (run-test-valgrind.sh) or spawns a private D-Bus server (libnm-test-launch.sh, libnm-glib-test-launch.sh). At that point, it is not directly possible to specify command line arguments for the tests, which is why it is convenient to specify arguments via $NMTST_DEBUG environment variable. Parse "p" and "s" arguments from $NMTST_DEBUG and pass them to g_test_init() to select which tests to run. NMTST_DEBUG=p=/core/general/test_setting_ip4_changed_signal ./libnm-core/tests/test-general However, there is a problem here: in gtestutils, -p/-s conflicts with --tap, which is how our Makefile invokes the tests. Thus the new options explicitly don't work when being called during `make check`. Which makes this much less useful. I only noticed that afterwards, so still keep the patch because it might still be convenient during developing tests to set the environment variable once, and then repeatedly spawn the tests, without specifying -p/-s.
| * nmtst: pass -m=quick when specifying quick test in $NMTST_DEBUGThomas Haller2015-11-241-1/+38
| | | | | | | | | | When the environment variable indicates that we want to run quick tests, pass "-m=quick" to g_test_init().
| * nmtst: detect whether the test runs as tap testThomas Haller2015-11-241-0/+3
| | | | | | | | Same as gtestutils does, look for --tap command line argument.
| * nmtst: initialize g_test_init() after parsing NMTST_DEBUGThomas Haller2015-11-241-11/+11
|/
* merge: branch 'bg/dhcp-send-fqdn-rh1255507'Beniamino Galvani2015-11-2320-41/+260
|\ | | | | | | https://bugzilla.redhat.com/show_bug.cgi?id=1255507
| * dhcp4: send FQDN option when ipv4.dhcp-fqdn is setBeniamino Galvani2015-11-2312-31/+122
| | | | | | | | Modify the 3 DHCP client backends to support the new property.
| * cli: add ipv4.dhcp-fqdn propertyBeniamino Galvani2015-11-231-4/+15
| |
| * ifcfg-rh: support the DHCP_FQDN variableBeniamino Galvani2015-11-233-2/+25
| | | | | | | | | | Add support for the DHCP_FQDN ifcfg-rh variable which maps to the ipv4.dhcp-fqdn property.
| * libnm-core: add a 'dhcp-fqdn' property to NMSettingIP4ConfigBeniamino Galvani2015-11-235-1/+78
| | | | | | | | | | | | The property contains the fully qualified domain name to be sent to DHCP server using the FQDN option. The property is mutually exclusive with 'dhcp-hostname'.
| * dhcp-manager: strip hostname sent by dhcpcdBeniamino Galvani2015-11-231-2/+9
| | | | | | | | | | | | The dhclient DHCP backend strips the domain part from the hostname option sent to server; for consistency among different backends uniform the dhcpcd client to do the same.
| * dhcp-manager: strip hostname sent by internal DHCP clientBeniamino Galvani2015-11-231-1/+11
|/ | | | | | The dhclient DHCP backend strips the domain part from the hostname option sent to server; for consistency among different backends uniform the internal client to do the same.
* systemd: merge branch 'systemd' into masterBeniamino Galvani2015-11-2387-7918/+6466
|\
| * systemd: update code from upstreamBeniamino Galvani2015-11-2385-7962/+6363
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a direct dump from systemd git on 2015-11-23, git commit 6098bb0dc31b1c472ab868088d04234352c44b75. ====== SYSTEMD_DIR=../systemd COMMIT=6098bb0dc31b1c472ab868088d04234352c44b75 ( cd "$SYSTEMD_DIR" git checkout "$COMMIT" git reset --hard git clean -fdx ) git ls-files :/src/systemd/src/ | xargs -d '\n' rm -f nm_copy_sd() { mkdir -p "./src/systemd/$(dirname "$1")" cp "$SYSTEMD_DIR/$1" "./src/systemd/$1" } nm_copy_sd "src/basic/alloc-util.c" nm_copy_sd "src/basic/alloc-util.h" nm_copy_sd "src/basic/async.h" nm_copy_sd "src/basic/escape.c" nm_copy_sd "src/basic/escape.h" nm_copy_sd "src/basic/fileio.c" nm_copy_sd "src/basic/fileio.h" nm_copy_sd "src/basic/fd-util.c" nm_copy_sd "src/basic/fd-util.h" nm_copy_sd "src/basic/fs-util.c" nm_copy_sd "src/basic/fs-util.h" nm_copy_sd "src/basic/hashmap.c" nm_copy_sd "src/basic/hashmap.h" nm_copy_sd "src/basic/hexdecoct.c" nm_copy_sd "src/basic/hexdecoct.h" nm_copy_sd "src/basic/hostname-util.c" nm_copy_sd "src/basic/hostname-util.h" nm_copy_sd "src/basic/in-addr-util.c" nm_copy_sd "src/basic/in-addr-util.h" nm_copy_sd "src/basic/io-util.c" nm_copy_sd "src/basic/io-util.h" nm_copy_sd "src/basic/list.h" nm_copy_sd "src/basic/log.h" nm_copy_sd "src/basic/macro.h" nm_copy_sd "src/basic/mempool.h" nm_copy_sd "src/basic/mempool.c" nm_copy_sd "src/basic/parse-util.c" nm_copy_sd "src/basic/parse-util.h" nm_copy_sd "src/basic/path-util.c" nm_copy_sd "src/basic/path-util.h" nm_copy_sd "src/basic/prioq.h" nm_copy_sd "src/basic/prioq.c" nm_copy_sd "src/basic/random-util.c" nm_copy_sd "src/basic/random-util.h" nm_copy_sd "src/basic/refcnt.h" nm_copy_sd "src/basic/set.h" nm_copy_sd "src/basic/siphash24.c" nm_copy_sd "src/basic/siphash24.h" nm_copy_sd "src/basic/socket-util.h" nm_copy_sd "src/basic/sparse-endian.h" nm_copy_sd "src/basic/string-table.c" nm_copy_sd "src/basic/string-table.h" nm_copy_sd "src/basic/string-util.c" nm_copy_sd "src/basic/string-util.h" nm_copy_sd "src/basic/strv.c" nm_copy_sd "src/basic/strv.h" nm_copy_sd "src/basic/time-util.c" nm_copy_sd "src/basic/time-util.h" nm_copy_sd "src/basic/umask-util.h" nm_copy_sd "src/basic/unaligned.h" nm_copy_sd "src/basic/utf8.c" nm_copy_sd "src/basic/utf8.h" nm_copy_sd "src/basic/util.c" nm_copy_sd "src/basic/util.h" nm_copy_sd "src/libsystemd-network/arp-util.c" nm_copy_sd "src/libsystemd-network/arp-util.h" nm_copy_sd "src/libsystemd-network/dhcp6-internal.h" nm_copy_sd "src/libsystemd-network/dhcp6-lease-internal.h" nm_copy_sd "src/libsystemd-network/dhcp6-network.c" nm_copy_sd "src/libsystemd-network/dhcp6-option.c" nm_copy_sd "src/libsystemd-network/dhcp6-protocol.h" nm_copy_sd "src/libsystemd-network/dhcp-identifier.c" nm_copy_sd "src/libsystemd-network/dhcp-identifier.h" nm_copy_sd "src/libsystemd-network/dhcp-internal.h" nm_copy_sd "src/libsystemd-network/dhcp-lease-internal.h" nm_copy_sd "src/libsystemd-network/dhcp-network.c" nm_copy_sd "src/libsystemd-network/dhcp-option.c" nm_copy_sd "src/libsystemd-network/dhcp-packet.c" nm_copy_sd "src/libsystemd-network/dhcp-protocol.h" nm_copy_sd "src/libsystemd-network/lldp.h" nm_copy_sd "src/libsystemd-network/lldp-internal.h" nm_copy_sd "src/libsystemd-network/lldp-internal.c" nm_copy_sd "src/libsystemd-network/lldp-network.h" nm_copy_sd "src/libsystemd-network/lldp-network.c" nm_copy_sd "src/libsystemd-network/lldp-port.c" nm_copy_sd "src/libsystemd-network/lldp-port.h" nm_copy_sd "src/libsystemd-network/lldp-tlv.c" nm_copy_sd "src/libsystemd-network/lldp-tlv.h" nm_copy_sd "src/libsystemd-network/lldp-util.h" nm_copy_sd "src/libsystemd-network/network-internal.c" nm_copy_sd "src/libsystemd-network/network-internal.h" nm_copy_sd "src/libsystemd-network/sd-dhcp6-client.c" nm_copy_sd "src/libsystemd-network/sd-dhcp6-lease.c" nm_copy_sd "src/libsystemd-network/sd-dhcp-client.c" nm_copy_sd "src/libsystemd-network/sd-dhcp-lease.c" nm_copy_sd "src/libsystemd-network/sd-ipv4ll.c" nm_copy_sd "src/libsystemd-network/sd-ipv4acd.c" nm_copy_sd "src/libsystemd-network/sd-lldp.c" nm_copy_sd "src/libsystemd/sd-id128/sd-id128.c" nm_copy_sd "src/libsystemd/sd-event/event-util.h" nm_copy_sd "src/shared/dns-domain.c" nm_copy_sd "src/shared/dns-domain.h" nm_copy_sd "src/systemd/_sd-common.h" nm_copy_sd "src/systemd/sd-dhcp6-client.h" nm_copy_sd "src/systemd/sd-dhcp6-lease.h" nm_copy_sd "src/systemd/sd-dhcp-client.h" nm_copy_sd "src/systemd/sd-dhcp-lease.h" nm_copy_sd "src/systemd/sd-event.h" nm_copy_sd "src/systemd/sd-ndisc.h" nm_copy_sd "src/systemd/sd-id128.h" nm_copy_sd "src/systemd/sd-ipv4acd.h" nm_copy_sd "src/systemd/sd-ipv4ll.h" nm_copy_sd "src/systemd/sd-lldp.h"
* | dhcp: pass IPv6 link-local address to DHCP clientBeniamino Galvani2015-11-238-3/+28
| | | | | | | | | | | | The DHCP client from new libsystemd-network requires a link-local IPv6 address to be passed to the library; add a new argument to nm_dhcp_manager_start_ip6() and related functions.
* | main: add argument --print-config to NetworkManagerThomas Haller2015-11-226-11/+65
| |
* | default-route: fix deleting default-route when disconnecting device (bgo ↵Thomas Haller2015-11-201-4/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | #757587) When deconfiguring a device, we must also explicitly clear the default-route -- unless the device was assumed. This can easily reproduced by disconnecting the cable from the wired connection that has the default rout. Prevously, the default-route was not cleared and lingered around. https://bugzilla.gnome.org/show_bug.cgi?id=757587
* | default-route: introduce _LOG2*() logging macros to log entry-messagesThomas Haller2015-11-201-35/+57
| |
* | platform: use explict "bool" type instead of "guint8" in NMPObjectsThomas Haller2015-11-201-2/+2
| |
* | platform: minor code cleanup in _new_from_nl_link()Thomas Haller2015-11-201-10/+10
| | | | | | | | | | Add a code comment, rename goto-labels, reorder some lines of code and have @lnk_data not being nm_auto_nmpobj.
* | core: verify secrets when adding connection via D-Bus (bgo #757843)Jiří Klimeš2015-11-201-3/+9
| | | | | | | | | | | | | | Fixes: dbbedce21f0dbb2849ed48bd2cee3b98e1ad2135 libnm: don't check for valid passwords in NMSetting:verify() https://bugzilla.gnome.org/show_bug.cgi?id=757843
* | libnm: add nm_setting_verify_secrets() and nm_connection_verify_secrets()Jiří Klimeš2015-11-2010-1/+182
| | | | | | | | | | | | | | for verifying the secrets, because it is not done in plain nm_setting_verify(). For simple verification of free-form string secrets, _nm_setting_verify_secret_string() helper is used.
* | ifcfg-rh: fix memleak reading mac-address-randomizationThomas Haller2015-11-191-0/+1
| | | | | | | | Fixes: 4b412218e64d57be64a61bdbdf47d1ea9ac7d007
* | libnm-core: fix memleak in NMSettingGsmThomas Haller2015-11-191-0/+3
| | | | | | | | Fixes: 4b412218e64d57be64a61bdbdf47d1ea9ac7d007