summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* bridge: move the Bluetooth NAP logic to bridge devicelr/bluetooth-napLubomir Rintel2017-06-015-64/+76
| | | | | The Bluetooth NAP functionality seems only useful for the bridges. Move it away from NMDevice.
* libnm: add _nm_connection_get_setting_bluetooth_for_nap()Thomas Haller2017-06-013-16/+18
| | | | | | If there is value in such a helper function (there is), then it should go alongside the other nm_connection_get_setting*() helpers. NMDevice is already large enough.
* device: don't include header of bluetooth plugin in nm-device.hThomas Haller2017-06-013-10/+7
| | | | | | | | | | | | The plugins may use stuff from core, but not the other way around. Including "bluetooth/nm-bluez-common.h" is wrong. The UUID argument is always "nap" in the NAP case. We don't need the flexibility that it might be anything else. Just drop it. As far as NMDevice is concerned, it anyway wouldn't (or shouldn't know what the uuid is. It says register, and NMBluez5Manager should figure out the details.
* bluetooth: emit component-added when a network server is addedLubomir Rintel2017-06-011-2/+13
|
* bluetooth: expose known HCI adapters to devicesLubomir Rintel2017-06-012-2/+213
| | | | | They may register the Bluetooth NAP enabled bridges for Bluez to enslave their BNEP links to.
* device: register a bridge for Bluetooth NAP with BluezLubomir Rintel2017-05-313-1/+89
| | | | | Bluez needs to know about then so that it can eventually enslave the BNEP links for PANU client connections to it.
* device: retry autoactivation upon a component additionLubomir Rintel2017-05-312-2/+14
| | | | It might have changed circumstances that were blocking the autoactivation.
* devices/factory: allow announcing a NULL componentLubomir Rintel2017-05-313-10/+13
| | | | | | | | We'll use this to let the devices know they can retry autoactivation because some component became available without actually having any data that would be useful for that device. Adjust the comment.
* clients: add support for Bluetooth NAP typeLubomir Rintel2017-05-314-13/+15
|
* clients: allow bridge settings for Bluetooth devicesLubomir Rintel2017-05-311-0/+1
| | | | Will be useful for Bluetooth NAP.
* core/connection: normalize bridge settings into bluetooth NAP connectionsLubomir Rintel2017-05-312-12/+41
| | | | | | | | For the Bluetooth NAP we need a Bridge link for the BlueZ to assign the BNEP links for PANU client connections into. Let's disable STP by default -- it adds extra delay for the Bridge when the BNEP link is assigned and is likely not useful for a typical client.
* core/bluetooth: add NAP typeLubomir Rintel2017-05-312-4/+13
|
* core: negotiate the best base settingLubomir Rintel2017-05-316-21/+31
| | | | | | | When the two base settings are present, use one of higher priority. This will pick the "bridge" setting when both "bridge" and "bluetooth" are present for a Bluetooth NAP connection.
* core: allow two priorities of base settingsLubomir Rintel2017-05-3113-17/+20
| | | | | | | | | We'll need two "base" settings for Bluetooth NAP connections: bridge to set up the actual link and bluetooth to identify the HCI to register the network server with. Let's use two priorities for base setting, with "1" marking one of higher priority and "2" of lower priority when both are present.
* core/connections: pick base setting from settings the connection actually hasLubomir Rintel2017-05-312-22/+17
| | | | | | | | | | We will need multiple base settings for Bluetooth NAP servers: bluetooth and bridge. We want to identify the device as "bluetooth" to the user, but leave the Bridge factory handle it. The "connection.type" is somewhat redundant -- let's keep it for what the user sees. And identify the actual base setting to pick the right factory by the actually present setting.
* bluez5: avoid leaking the interface dictionaryLubomir Rintel2017-05-311-4/+1
|
* bluez5: use _NMLOGLubomir Rintel2017-05-311-14/+19
|
* build: don't drop the test suite log on failureLubomir Rintel2017-05-311-0/+1
| | | | Fixes: 2198f73b0ec810b6b9084c0e00dcf07d4a6ee8e3
* bluetooth/trivial: rename the definesLubomir Rintel2017-05-316-38/+38
|
* bluetooth: streamline NMBluez5Manager teardown a bitLubomir Rintel2017-05-311-17/+7
|
* libnm-core: fix verify() implementations to allow connection=NULLLubomir Rintel2017-05-313-3/+7
|
* ifcfg: drop an unused variableLubomir Rintel2017-05-311-1/+0
|
* platform/tests: minor fix in _wait_for_ipv6_addr_non_tentative()Thomas Haller2017-05-311-2/+2
| | | | | For better or worse, there is a platform argument. Use it instead of the singleton.
* platform/tests: merge minor refactoring of route-testsThomas Haller2017-05-314-42/+65
|\
| * platform/tests: reorder wait-loop in test_ip6_route_options()Thomas Haller2017-05-311-30/+41
| | | | | | | | | | | | | | | | | | - no need to call nm_platform_process_events() after nmtstp_wait_for_signal(). The latter processes all events that are pending. - with addr_n number of addresses, we still only want to wait a maximum time, not for each addresss individually. Basically, the for-loop must be inside NMTST_WAIT(), not the other way around.
| * platform/tests: make timeout_ms argument for nmtstp_wait_for_signal() signedThomas Haller2017-05-312-7/+18
| | | | | | | | | | | | | | | | | | Having an unsigned "guint timeout_ms" argument is very inconvenient, because nmtstp_wait_for_signal (NM_PLATFORM_GET (), end_time - now_time); might easily be negative. In such a case, the correct behavior is to wait not at all.
| * platform/tests: change nmtstp_wait_for_signal() to wait with zero timeoutThomas Haller2017-05-311-4/+3
| | | | | | | | | | | | The previous behavior, of treating timeout_ms as *no timeout*, makes no sense. At least not for unit tests. If you have a really long timeout, then set it. "0" should really mean to schedule a zero timeout.
| * shared/tests: expose end-time from NMTST_WAIT() macroThomas Haller2017-05-311-3/+4
| |
| * shared/tests: document how to disable slow tests at compile-timeThomas Haller2017-05-311-1/+2
|/
* platform/tests: fix test_ip6_route_optionsFrancesco Giudici2017-05-301-0/+16
| | | | | | | when adding a route with RTA_PREFSRC some kernel versions will reject the request if the specified source address is still tentative: be sure that the just added addresses are no more tentative before adding the routes.
* ifcfg-rh: fix build failure in write_wired_setting()Thomas Haller2017-05-301-1/+1
| | | | Fixes: f80d0eb29e5fed5798a3d08b37a235d0ceede451
* libnm: fix rejecting NMSettingVlan with id >= 4095Thomas Haller2017-05-301-0/+1
| | | | | | | Without it, clients can wrongly create VLan settings with ID 4095, which triggers assertions in NetworkManager. Fixes: 8715d61437060cacc68c156b1c8ed7bbce4b0a78
* ifcfg-rh: use svSetValueInt64_cond() to write MTU valueThomas Haller2017-05-301-13/+4
|
* ifcfg-rh: add svSetValueInt64_cond()Thomas Haller2017-05-302-0/+10
| | | | | | | | | | | There are a lot of places where we want to either write a number, or conditionally clear it. Like: mtu = nm_setting_wireless_get_mtu (s_wireless); if (mtu) svSetValueInt64 (ifcfg, "MTU", mtu); else svUnsetValue (ifcfg, "MTU");
* tui: use nm_streq0() in nmt_connect_connection_list_get_connection()Thomas Haller2017-05-301-9/+7
|
* nmtui connect: avoid segfault when iface is not foundArnaud Lefebvre2017-05-301-3/+7
| | | | https://github.com/NetworkManager/NetworkManager/pull/21
* ifcfg-rh: merge branch 'th/ifcfg-netmask-legacy-rh1445414'Thomas Haller2017-05-3010-311/+411
|\ | | | | | | https://bugzilla.redhat.com/show_bug.cgi?id=1445414
| * ifcfg-rh: cleanup writer by using numbered_tag() helperThomas Haller2017-05-301-107/+82
| |
| * ifcfg-rh: move numbered_tag() util to "nms-ifcfg-rh-utils.h" headerThomas Haller2017-05-302-24/+24
| |
| * ifcfg-rh: fix preserving NETMASK key in write_ip4_setting()Thomas Haller2017-05-302-15/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To support legacy scripts, we want to write out the NETMASK key whenever the ifcfg file has a NETMASK key previously. Note, that we anyway always write the relevant PREFIX key. The NETMASK is redundant, only there to help legacy scripts. That was broken, because we would svUnsetValue("NETMASK") before checking whether the NETMASK key is present. Also, when saving a connection to ifcfg-rh file that was created by other tools, we might mix up the numbering. E.g. we never write out IPADDR0. Hence, turn on legacy mode whenever the ifcfg-rh file has any key starting with "NETMASK".
| * ifcfg-rh/tests: add test for reading NETMASK propertyThomas Haller2017-05-305-0/+90
| |
| * build: sort filenames in Makefile.am alphabeticallyThomas Haller2017-05-301-150/+151
| |
| * ifcfg-rh: add svFindFirstKeyWithPrefix() functionThomas Haller2017-05-302-0/+24
| |
| * ifcfg-rh: return from svSetValue*() functions whether anything changedThomas Haller2017-05-302-24/+30
| |
| * ifcfg-rh: fix writing NETMASK in write_ip4_setting()Thomas Haller2017-05-301-1/+2
|/
* po: bring back Polish translation fixesLubomir Rintel2017-05-291-3/+3
| | | | Zanata seems to corrupt the translations: https://zanata.atlassian.net/browse/ZNTA-2007
* po: update Japanese translationLubomir Rintel2017-05-2966-319/+750
| | | | From the Red Hat translators. Fix up the bad msgmerge.
* po: fix line ending in Japan translationLubomir Rintel2017-05-291-1/+1
|
* po: update translations from ZanataLubomir Rintel2017-05-2966-5432/+221194
| | | | And make -C po update-po to canonicalize them.
* po: small translation fix for the Greek language.Adonis Papaderos2017-05-291-1/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=783182