summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* fixup! core: activate slaves when master is activated (bgo #735052) (rh ↵jk/master-bringup-slavesJiří Klimeš2015-06-111-2/+5
| | | | #1158529)
* fixup! cli: add support for connection.autoconnect-slaves propertyJiří Klimeš2015-06-111-2/+20
|
* fixup! ifcfg-rh: read/write autoconnect-slaves property as AUTOCONNECT_SLAVESJiří Klimeš2015-06-112-2/+12
| | | | | If the AUTOCONNECT_SLAVES variable is missing, we suppose values compatible with initscripts, i.e. "yes" for bonds and teams, "no" for bridges.
* fixup! libnm: add autoconnect-slaves property to NMSettingConnectionJiří Klimeš2015-06-112-8/+14
| | | | - split DEFAULT to DEFAULT_NO and DEFAULT_YES
* man: mention that connection.autoconnect-slaves property supports default valueJiří Klimeš2015-06-111-0/+4
|
* core: activate slaves when master is activated (bgo #735052) (rh #1158529)Jiří Klimeš2015-06-111-0/+124
| | | | | | | | | When a master connection is activated, check all its slaves and decide whether they should be activated as well. This is done according to the autoconnect-slaves property. https://bugzilla.gnome.org/show_bug.cgi?id=735052 https://bugzilla.redhat.com/show_bug.cgi?id=1158529
* cli: add support for connection.autoconnect-slaves propertyJiří Klimeš2015-06-111-6/+58
|
* ifcfg-rh: read/write autoconnect-slaves property as AUTOCONNECT_SLAVESJiří Klimeš2015-06-113-2/+18
| | | | | | | | AUTOCONNECT_SLAVES is an NetworkManager extension. initscripts always activate slaves with the master connection for bond and team, and doesn't activate automatically slaves for bridge. NetworkManager behaviour is controlled by this variable. If the variable is missing the default value from configuration file is used.
* libnm: add autoconnect-slaves property to NMSettingConnectionJiří Klimeš2015-06-114-0/+84
| | | | | | | | The property is used for controlling whether slaves should be brought up with a master connection. If 0, activating the master will not activate slaves. But if set to 1, activating the master will bring up slaves as well. The property can have the third state (-1), meaning that the value is default. That is either a value set in the configuration file for the property, or 0.
* cli: use color names when TAB-completing "nmcli prompt-color"Jiří Klimeš2015-06-111-1/+2
|
* cli: take color name arguments for "nmcli prompt-color" in editor (bgo #744936)Jiří Klimeš2015-06-113-15/+41
| | | | | | | | | Adjust nmcli prompt-color description and make it more friendly for translators. nmcli> nmcli prompt-color green https://bugzilla.gnome.org/show_bug.cgi?id=744936
* cli: fix metered to string propertyThomas Haller2015-06-101-0/+11
| | | | | | | nmc_property_connection_get_metered() must return non-localized strings that can be parsed by nmc_property_connection_set_metered(). Fixes: f0aebfd7462dea9b3ebc579a49248027f6d23905
* all: fix a compiler warning about function declarationsJiří Klimeš2015-06-105-10/+10
| | | | | | | | | warning: function declaration isn’t a prototype [-Wstrict-prototypes] In C function() and function(void) are two different prototypes (as opposed to C++). function() accepts an arbitrary number of arguments function(void) accepts zero arguments
* xml: (trivial) fix a typoJiří Klimeš2015-06-101-2/+2
|
* merge branch 'bg/metered-connections-bgo741725'Beniamino Galvani2015-06-0938-12/+668
|\ | | | | | | | | | | | | | | | | Expose information about whether a connection is metered and use some heuristics to choose a reasonable default when the value is not configured. https://bugzilla.gnome.org/show_bug.cgi?id=741725 https://bugzilla.redhat.com/show_bug.cgi?id=1200452
| * nm-manager: add 'metered' propertyBeniamino Galvani2015-06-099-2/+141
| | | | | | | | | | | | This introduces a global metered property which makes easier for clients to obtain the metered status of the current primary connection.
| * cli: fix error message localizationBeniamino Galvani2015-06-091-2/+8
| | | | | | | | | | Valid values must not be translated in error messages generated in nmc_string_to_bool() and nmc_string_to_tristate().
| * ifcfg-rh: add support for CONNECTION_METEREDBeniamino Galvani2015-06-093-0/+28
| |
| * ifcfg-rh: change type of svTrueValue() return value and argumentBeniamino Galvani2015-06-092-4/+4
| | | | | | | | | | | | Change type of return value and 'def' argument of svTrueValue() to gint to make clear that it can be something different from TRUE and FALSE.
| * core: update device 'metered' property on connection state changeBeniamino Galvani2015-06-091-1/+59
| | | | | | | | | | | | | | | | | | The metered property of a NMDevice that reaches the activated state is copied from the active connection and if its value is 'unknown' some heuristics are used to guess the actual value. When the connection is torn down the metered property is reset to 'unknown'.
| * dhcp: detect NMIP4Config 'metered' flag based on ANDROID_METERED DHCP optionBeniamino Galvani2015-06-093-0/+35
| | | | | | | | | | | | | | Some versions of Android's DHCP server send option 43 (Vendor specific information) with value "ANDROID_METERED" in Wi-Fi hotspot mode. Mark the NMIP4Config as metered when such option is received.
| * systemd/dhcp: add support for vendor specific DHCP optionBeniamino Galvani2015-06-094-0/+56
| | | | | | | | | | | | | | This adds support for DHCP option 43 (Vendor Specific Information) to the internal DHCP client. The option carries an opaque object of n octets, interpreted by vendor-specific code on the clients and servers.
| * core: add 'metered' flag to NMIP4ConfigBeniamino Galvani2015-06-092-0/+34
| | | | | | | | | | | | | | Some DHCP servers send specific options to give a hint that clients should avoid unneeded data usage. Add a metered flag to NMIP4Config to keep track of this information.
| * cli: add support for 'metered' connection propertyBeniamino Galvani2015-06-091-1/+56
| |
| * cli: add nmc_string_to_tristate()Beniamino Galvani2015-06-092-0/+37
| |
| * libnm-core: add 'metered' property to NMSettingConnectionBeniamino Galvani2015-06-094-0/+57
| | | | | | | | | | | | Add a 'metered' enum property to NMSettingConnection with possible values: unknown,yes,no. The value indicates the presence of limitations in the amount of traffic flowing through the connection.
| * cli: add 'metered' property to deviceBeniamino Galvani2015-06-093-1/+21
| |
| * core,libnm: add 'metered' property to NMDeviceBeniamino Galvani2015-06-097-2/+133
|/
* contrib/rpm: let NetworkManager package own '/etc/NetworkManager/' directoryThomas Haller2015-06-081-0/+2
|
* platform: merge branch 'th/platform_refact_caching-bgo747981' (early part)Thomas Haller2015-06-0519-444/+690
|\ | | | | | | | | | | | | | | | | | | | | - add new file 'nm-platform-utils.c' and moves some independent utility functions there (ethtool, udev). - some refactoring of platform code, including initialization of NMPlatform instance. - run platform tests in a separate user namespace, which allow us to run root-tests as non-root. https://bugzilla.gnome.org/show_bug.cgi?id=747981
| * platform: expose nm_platform_signal_change_type_to_string()Thomas Haller2015-06-053-24/+11
| |
| * platform: refactor support_kernel_extended_ifa_flags to static variableThomas Haller2015-06-051-40/+45
| | | | | | | | | | Whether we have support depends on the kernel, and is not per NMLinuxPlatform instance.
| * platform: move ethtool_get_link_speed() to nm-platform-utilsThomas Haller2015-06-053-32/+28
| |
| * platform: move supports_mii_carrier_detect() to ↵Thomas Haller2015-06-053-44/+54
| | | | | | | | nmp_utils_mii_supports_carrier_detect()
| * platform: move ethtool_*() to nmp_utils_ethtool_*()Thomas Haller2015-06-053-210/+238
| |
| * platform: factor out ethtool_get_wake_on_lan() functionThomas Haller2015-06-051-10/+19
| |
| * platform: factor out ethtool_get_peer_ifindex() functionThomas Haller2015-06-051-13/+28
| |
| * platform: factor out ethtool_supports_vlans() functionThomas Haller2015-06-051-24/+30
| |
| * platform/trivial: move ethtool_supports_carrier_detect() codeThomas Haller2015-06-051-13/+13
| |
| * platform: move code udev_get_driver() to nmp_utils_udev_get_driver()Thomas Haller2015-06-053-42/+48
| |
| * platform: add nm-platform-utils.[ch] filesThomas Haller2015-06-056-4/+107
| | | | | | | | | | | | | | | | | | | | | | | | There is no general purpose file for platform utilities. We only have nm-platform.h, which contains (mostly) functions that operate on a NMPlatform instance (and that can be mocked using NMFakePlatform). Add a new file for independent utility functions. nm-platform-utils.c should not call into functions having a NMPlatform instance, to have them independent from platform caching and the platform singleton.
| * platform: move nm_platform_query_devices() to nm-managerThomas Haller2015-06-053-29/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | nm_platform_query_devices() would raise an 'added' signal for all its links. That is bad style because it could confuse other listeners for platform signals which don't expect such artificial change signals. The public API of NMPlatform already gives NMManager the ability to 'pull' all the links and iterate them itself. Before, nm_platform_query_devices() would also initialize udev devices, so there was a more compelling reason for this function.
| * platform: merge setup_devices() function into constructed()Thomas Haller2015-06-054-19/+12
| | | | | | | | | | | | | | | | | | | | We already populate the netlink cache in constructed(). No need to wait with udev devices until nm_platform_query_devices(). Just do it right away. Add a hack to keep 'lo' default-unmanaged. Now that we load udev devices earlier, we end up clearing the default-unmanged flag on 'lo', which has bad consequences.
| * tests: use a user ns to fake rootLubomir Rintel2015-06-051-7/+51
| |
| * tests: allow running the link test without a writeable sysfsLubomir Rintel2015-06-053-25/+44
| | | | | | | | This fixes the test run in a container/our NETNS/NEWUSER test jail.
| * core: add option to suppress error logging if nm_utils_modprobe() failsThomas Haller2015-06-055-8/+23
| | | | | | | | | | | | We don't want error logging for nm_platform_link_add() which tries to load the bonding module. Later we will run tests as non-root, where modprobe will fail. Logging an error would break the tests.
| * utils: add NM_FLAGS_SET(), NM_FLAGS_UNSET() and NM_FLAGS_ASSIGN() macrosThomas Haller2015-06-051-0/+23
| |
| * core: make nm_assert() always compile conditionThomas Haller2015-06-051-1/+1
|/ | | | | | Even if asserts are not enabled, still let the compiler see what we would assert. Otherwise, we get warnings about unused variables or we migth miss compile errors inside nm_assert().
* Revert "core: avoid loading GIO modules"Lubomir Rintel2015-06-052-8/+0
| | | | | | This reverts commit 6a841c0cd1532f6e2e04c2fbb674ee3f69c714b7. We do actually need the modules for connectivity checking.
* merge branch 'th/connection-defaults-bgo695383'Thomas Haller2015-06-0515-86/+492
|\ | | | | | | | | | | | | | | | | | | | | - support new [connection] section in NetworkManager.conf - allow configuring a default value for ipvx.route-metric - allow configuring a default value for ipv6.ip6-privacy and read the fallback configuration from sysctl. https://bugzilla.gnome.org/show_bug.cgi?id=695383 https://bugzilla.gnome.org/show_bug.cgi?id=721200 https://bugzilla.redhat.com/show_bug.cgi?id=1187525