| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
| |
Factories that overwrite this function are not supposed to chain
up the parent implementation. Thus there is no reason to have
a default implementation and it's clearer to inline it.
|
|
|
|
| |
Only lookup the factory once and pass it down to find_parent_device_for_connection().
|
|
|
|
| |
Generic check_connection_compatible() already does the check.
|
|
|
|
|
|
|
|
| |
We not only want to check the device name when creating a virtual device, but
also when determining if the connection can actually be activated there.
Otherwise the device names will mix up if there's more connections that use
virtual devices of the same type.
|
|
|
|
|
| |
We'll need the actual device name that should be used for a connection
activated on a given device when checking the connection availability.
|
|
|
|
|
|
|
| |
interface name
This makes things a bit simpler when determining if any connection is
activatable on an existing device.
|
|
|
|
| |
get_connection_iface()
|
|
|
|
| |
Fixes: 174b25d98c3ae395f5b41fc2e7d5c222cb6369cf
|
|
|
|
|
|
| |
nm_platform_link_inet6_addrgenmode2str()
There is a new address generation mode.
|
|
|
|
|
|
|
| |
Reuse the to-string function nm_platform_link_inet6_addrgenmode2str() to print the
addrgenmode for nm_platform_link_to_string().
Also, now we support NM_IN6_ADDR_GEN_MODE_STABLE_PRIVACY.
|
|
|
|
| |
nm_platform_link_tun_get_properties_ifname()
|
|
|
|
| |
to --no-dist
|
|
|
|
|
|
|
|
| |
"nm-default.h" should only include all the relevant header files based
on NETWORKMANAGER_COMPILATION. It should not contain definitions on
it's own.
Move the definition of "bool" to "nm-macros-internal.h".
|
|
|
|
| |
Fixes: 1762d58a8cf7fbd21b6940fb2a15c136952a9603
|
|\
| |
| |
| | |
https://bugzilla.gnome.org/show_bug.cgi?id=761959
|
| |
| |
| |
| |
| | |
Now, that we no longer overwrite @err, we can jump to stop: instead
of out:.
|
| |
| |
| |
| |
| |
| | |
If we break the loop normally, @err must be already set to zero.
The only other way this can happen is when the credentials are
invalid. Move setting @err to there.
|
| |
| |
| |
| |
| |
| | |
If @handle_events is FALSE, we want to drain the socket. In that case
even when encountering an error error we don't want to abort, but instead
continue reading the next message.
|
| |
| |
| |
| |
| |
| | |
@abort_parsing is set TRUE at two places, which also explicitly
set @err to something. We don't want to reset @err and got to the
next @hdr. Instead error out first.
|
| |
| |
| |
| | |
Doesn't seem important and might be triggered by other processes.
|
| |
| |
| |
| |
| |
| | |
The value is not used by the callers. Also, with @handle_events set
to false, it is not clear what the value really means because we skip
over errors.
|
| | |
|
|/
|
|
|
| |
Similar to gs_free to cleanup pointers with free(). Note that
g_free() and free() cannot be used interchangably.
|
|
|
|
|
| |
When building fails, we should not run the tests. They clutter
the output.
|
|
|
|
|
|
|
|
| |
Unenslaving from a bridge can cause a spurious RTM_DELLINK signal.
NMPlatform does raise those signals, but fixes the state of the
cache afterwards. Workaround the test failure.
Related: https://bugzilla.redhat.com/show_bug.cgi?id=1285719
|
|\
| |
| |
| | |
https://bugzilla.gnome.org/show_bug.cgi?id=761464
|
| |
| |
| |
| | |
Fixes: 3f0d595cc827d9e1117bc5c796aa11185ba8c5d7
|
| |
| |
| |
| |
| |
| |
| |
| | |
Change the dhcp-timeout property in NMSettingIPConfig to int type for
consistency with the dad-timeout property. For dad-timeout -1 means
"use default value", while for dhcp-timeout probably we will never use
negative values, but it seems more correct to use the same type for
the two properties.
|
|/
|
|
|
| |
The property applies to both IPv4 and IPv6 and so it should not be in
NMSettingIP4Config but in the base class.
|
|\
| |
| |
| |
| | |
https://bugzilla.gnome.org/show_bug.cgi?id=760884
https://bugzilla.gnome.org/show_bug.cgi?id=761714
|
| | |
|
| |
| |
| |
| |
| | |
Thereby, also adjust the type for libnm's wrapper function -- as
we already broke ABI.
|
| | |
|
| |
| |
| |
| |
| |
| | |
Expose applied connection in D-Bus API.
https://bugzilla.gnome.org/show_bug.cgi?id=760884
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This breaks API and ABI for the functions related to Reapply,
which got introduced in the current 1.1 development phase.
The version-id is here to allow users to error out if the connection
on the device was changed by a concurrent action.
https://bugzilla.gnome.org/show_bug.cgi?id=761714
|
| |
| |
| |
| |
| |
| |
| |
| | |
This field will be later used by NMDevice's Reapply and
GetAppliedConnection methods. The usecase is to first fetch
the currently applied connection, adjust it and reapply it.
Using the version-id, a concurrent modification can be detected
and Reapply can reject the invocation.
|
|/
|
|
|
| |
Only D-Bus implementations should be named "^impl_.*", not a helper
function.
|
|
|
|
|
|
|
|
|
|
| |
Otherwise, a tun device from external openvpn service will be managed by
NetworkManager.
<debug> [1455615148.716529] [devices/nm-device.c:9082] _set_unmanaged_flags(): [0x55e6f5756070] (tun7): unmanaged: flags set to [!sleeping,!loopback,!platform-init,!user-config,!external-down=0x0/0xa19/managed, set-managed [platform-init=0x10], reason managed, transition-state)
<info> (tun7): device state change: unmanaged -> unavailable (reason 'managed') [10 20 2]
Fixes: 87a3df2e572ed47b5f76f6d1cad63ce622296e21
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Some drivers (or things outside NM like 'powertop') may turn powersave
on, so don't touch it unless explicitly configured by user.
To achieve this, add new 'default' and 'ignore' options; the former
can be used to fall back to a globally configured setting, while the
latter tells NM not to touch the current setting.
When 'default' is specified, a missing global default configuration is
equivalent to 'ignore'.
It is possible to enable Wi-Fi power saving for all connections by
dropping a file in /etc/NetworkManager/conf.d with the following
content:
[connection]
wifi.powersave=3
https://bugzilla.gnome.org/show_bug.cgi?id=760125
|
|
|
|
|
|
|
|
| |
RFC 3442 allows a default gateway to be specified in option 121
(Classless Static Routes) and override the Router option. Implement
this in the internal DHCP client.
https://bugzilla.gnome.org/show_bug.cgi?id=761268
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Using strcmp() to test for string equality is a well known pattern.
However the inverse logic still is still hard to grasp especially in
more complex expressions.
nm_streq() should is an alternative to use strcmp(). And there is a counterpart
nm_streq0() which is based on g_strcmp0().
Kernel and systemd have also similar streq() macros.
https://mail.gnome.org/archives/networkmanager-list/2016-February/msg00047.html
|
|\
| |
| |
| | |
https://bugzilla.gnome.org/show_bug.cgi?id=746566
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Get rid of NM_UNMANAGED_DEFAULT and refine the interaction between
unmanaged flags, device state and managed property.
Previously, the NM_UNMANAGED_DEFAULT was special in that a device was
still considered managed if it had solely the NM_UNMANAGED_DEFAULT flag
set and its state was managed. Thus, whether the device (state) was managed,
depended on the device state too.
Now, a device is considered managed (or unmanaged) based on the unmanaged
flags and realization state alone. At the same time, the device state
directly corresponds to the managed property of the device. Of course,
while changing the unmanaged flags, that invariant is shortly violated
until the state transistion is complete.
Introduce more unmanaged flags whereas some of them are non-authorative.
For example, the EXTERNAL_DOWN flag has only effect as long as the user
didn't explicitly manage the device (NM_UNMANAGED_USER_EXPLICIT). In other
words, certain flags can render other flags ineffective. Whether the device
is considered managed depends on the flags but also at the explicitly unset flags.
In a way, this is similar to previous where NM_UNMANAGED_DEFAULT was ignored
(if no other flags were present).
Also, previously a device that was NM_UNMANAGED_DEFAULT and in disconnected
state would transition back to unmanaged. No longer do that. Once a device is
managed, it stays managed as long as the flags indicate it should be managed.
However, the user can also modify the unmanaged flags via the D-Bus API.
Also get rid or nm_device_finish_init(). That was previously called
by NMManager after add_device(). As we now realize devices (possibly
multiple times) this should be handled during realization.
https://bugzilla.gnome.org/show_bug.cgi?id=746566
|
| | |
|
|/
|
|
|
|
| |
user-request
But not with ignoring-carrier and ignoring-ap.
|
|
|
|
|
|
|
|
| |
connections
It could be that what changed is the unrealize flag, not the number available
connections. That could happen when a last connection for a software device
is removed.
|
|
|
|
|
|
|
|
| |
The nm_device_check_connection_available() call seem to have been accidentally
removed from nm_device_recheck_available_connections() resulting in all
connections always being added.
Fixes 02ec76df5aaa3a3ad197cb1d53c0388029775b07
|
|\
| |
| |
| |
| | |
https://bugzilla.gnome.org/show_bug.cgi?id=728342
https://bugzilla.gnome.org/show_bug.cgi?id=762008
|
| | |
|