| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
| |
replace-settings
Add internal functions _nm_connection_replace_settings() and
_nm_connection_new_from_hash() that cannot fail.
Altough they are not public API, we have to expose them via
libnm-util.ver so that they can be used from libnm-glib.
|
|
|
|
| |
https://bugzilla.redhat.com/show_bug.cgi?id=1262922
|
| |
|
|
|
|
|
|
|
|
|
| |
We now also use a similar function in VPN plugins. It makes
sense to provide a generic implementation in libnm.
Signed-off-by: Thomas Haller <thaller@redhat.com>
https://bugzilla.gnome.org/show_bug.cgi?id=740783
|
|
|
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=735512
https://bugzilla.redhat.com/show_bug.cgi?id=663730
Signed-off-by: Thomas Haller <thaller@redhat.com>
|
|
|
|
|
| |
No reason to have two differently named files for the
same general purpose.
|
|
|
|
|
|
|
|
|
|
|
| |
This function behaves like verify(), but it also performs some
normalization/fixing of inconsistent connections.
Contrary to verify(), this function might modify the settings.
This will be mainly used, to repair connections from older versions
and to fix deprecated options.
Signed-off-by: Thomas Haller <thaller@redhat.com>
|
|
|
|
| |
Signed-off-by: Thomas Haller <thaller@redhat.com>
|
|
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=729844
Signed-off-by: Thomas Haller <thaller@redhat.com>
|
| |
|
| |
|
|
|
|
|
|
| |
libnm-util/libnm-util.ver
Signed-off-by: Thomas Haller <thaller@redhat.com>
|
|
|
|
|
| |
Add a function encoding the logic of what virtual types support what
slave/parent types, so clients don't need to encode it themselves.
|
|
|
|
| |
https://bugzilla.redhat.com/show_bug.cgi?id=1061822
|
|
|
|
|
| |
nm_setting_vlan_remove_priority_by_value()
nm_setting_vlan_remove_priority_str_by_value()
|
|
|
|
|
|
|
|
| |
'802-11-wireless-security' setting
nm_setting_wireless_security_remove_proto_by_value()
nm_setting_wireless_security_remove_pairwise_by_value()
nm_setting_wireless_security_remove_group_by_value()
|
|
|
|
|
|
|
| |
nm_setting_wired_remove_mac_blacklist_item_by_value()
Also add missing function nm_setting_wired_clear_mac_blacklist_items() and notify
about mac-address-blacklist changes.
|
|
|
|
|
|
| |
nm_setting_wired_remove_mac_blacklist_item_by_value()
and missing
nm_setting_wired_clear_mac_blacklist_items()
|
|
|
|
|
| |
nm_setting_connection_remove_permission_by_value()
nm_setting_connection_remove_secondary_by_value()
|
|
|
|
|
|
| |
nm_setting_802_1x_remove_eap_method_by_value()
nm_setting_802_1x_remove_altsubject_match_by_value()
nm_setting_802_1x_remove_phase2_altsubject_match_by_value()
|
|
|
|
|
|
|
|
|
|
|
|
| |
nm_setting_ip4_config_remove_dns_by_value()
nm_setting_ip4_config_remove_dns_search_by_value()
nm_setting_ip4_config_remove_address_by_value()
nm_setting_ip4_config_remove_route_by_value()
nm_setting_ip6_config_remove_dns_by_value()
nm_setting_ip6_config_remove_dns_search_by_value()
nm_setting_ip6_config_remove_address_by_value()
nm_setting_ip6_config_remove_route_by_value()
|
|
|
|
|
| |
Add functions to describe and disambiguate devices and connections for
display to the user. Originally from libnm-gtk.
|
|
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=711684
Signed-off-by: Thomas Haller <thaller@redhat.com>
|
| |
|
|
|
|
| |
Includes various fixes & cleanups from Thomas Haller.
|
|
|
|
|
| |
Co-Authored-By: Jiří Klimeš <jklimes@redhat.com>
Signed-off-by: Thomas Haller <thaller@redhat.com>
|
|
|
|
| |
Signed-off-by: Jiri Pirko <jiri@resnulli.us>
|
|
|
|
| |
Signed-off-by: Jiri Pirko <jiri@resnulli.us>
|
|
|
|
|
|
|
|
|
| |
To better handle broken hardware, like switches which don't pass
traffic for a few seconds after a carrier has been negotiated,
add a timeout to control how long to wait for successful pings
of the gateway before giving up and proceeding with IP config.
Default is 0, which means don't ping the gateway, just assume
the NIC/switch aren't lying and can pass traffic immediately.
|
|
|
|
| |
to fix "make check"
|
|
|
|
|
| |
Add p-key and parent properties to NMSettingInfiniband, for specifying
additional interfaces using alternate IPoIB partitions.
|
| |
|
|
|
|
|
|
|
| |
Add nm_utils_hwaddr_ntoa_len() and nm_utils_hwaddr_aton_len(), which
take a length rather than a type, which is generally more convenient,
and also necessary if you might be encountering devices of unknown
types.
|
|
|
|
|
|
|
| |
nm_setting_wire(d/less)_get_num_mac_blacklist_items()
nm_setting_wire(d/less)_get_mac_blacklist_item()
nm_setting_wire(d/less)_add_mac_blacklist_item()
nm_setting_wire(d/less)_remove_mac_blacklist_item()
|
|
|
|
|
| |
Add NMSettingGeneric, a dummy L2 NMSetting for creating NMConnections
for devices that are not specifically recognized.
|
|
|
|
|
|
| |
Convenience function to replace settings in one conneciton with settings
from another, without having to go through the nm_connection_to_hash()
steps, which are just inefficient and kinda pointless.
|
|
|
|
|
| |
Ignoring carrier is generally something you want at the machine level
(eg, for a server), not at the connection level.
|
|
|
|
| |
and move them to libnm-util's nm-utils.s so that they are easily available.
|
| |
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=693684
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add a "need_carrier" argument to nm_device_is_available(), to allow
distinguishing between "device is not available", "device is fully
available", and "device is available except for not having carrier".
Adjust various parts of NMDevice and NMManager to allow for the
possibility of activating a connection with :carrier-detect = "no" on
a device with no carrier, and to avoid auto-disconnecting devices with
:carrier-detect = "on-activate".
https://bugzilla.gnome.org/show_bug.cgi?id=688284
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
For settings corresponding to devices that have a :carrier property
(ie bond, bridge, infiniband, vlan, and wired), add a :carrier-detect
property specifying how that affects the connection:
yes: The connection can only be activated when the device
has carrier, and will be deactivated if the device loses
carrier (for more than 4 seconds).
no: The connection ignores carrier on the device; it can be
activated when there is no carrier, and stays activated
when carrier is lost.
on-activate: The connection can only be activated when the
device has carrier, but it will not be deactivated if the
device loses carrier.
https://bugzilla.gnome.org/show_bug.cgi?id=688284
|
|
|
|
|
| |
and rename them to nm_utils_wep_key_valid(), nm_utils_wpa_psk_valid().
They are general functions and can also be used elsewere usefully.
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
This patch makes DHCPv6 support more or less equivalent to that
one of IPv4 DHCP.
(dcbw: fix some formatting, rearrange code so it's less convoluted,
fix up writing hostname to ifcfg files)
|
|
|
|
|
|
|
|
| |
Add a helper like nm_utils_security_valid() except for access point
mode. We can't use nm_utils_security_valid() without changing the
arguments, hence the new function. Plus in AP mode all you care about
are the device capabilities, not AP flags since the device *is*
the AP.
|
|
|
|
| |
This is useful outside the daemon too, so move it into libnm-utils.
|
|
|
|
| |
These connections are to be activated with the base connection.
|
|
|
|
| |
The bridging code needs it as well.
|