Lubomir Rintel
c17ab1b6ff
libnm-util: add ipv4.dhcp-timeout property
...
https://bugzilla.redhat.com/show_bug.cgi?id=1262922
2015-10-06 14:16:55 +02:00
Dan Williams
5293683e4a
libnm/libnm-util: add Wi-Fi 'powersave' property
2015-01-21 14:31:04 -06:00
Thomas Haller
6399170ff3
libnm: add function nm_utils_file_search_in_paths()
...
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
2014-12-05 11:07:42 +01:00
Thomas Haller
ce7fc351db
libnm: add NMSettingIPConfig:route-metric
...
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 >
2014-11-07 15:19:06 +01:00
Dan Williams
6cb6d39725
libnm-util: merge nm-util-private and nm-utils-private
...
No reason to have two differently named files for the
same general purpose.
2014-07-02 13:33:58 -05:00
Thomas Haller
de5656a570
libnm-util: add function nm_connection_normalize
...
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 >
2014-06-30 18:35:46 +02:00
Thomas Haller
28169725d7
libnm-util: add function nm_connection_get_interface_name()
...
Signed-off-by: Thomas Haller <thaller@redhat.com >
2014-06-30 18:35:16 +02:00
Thomas Haller
891eb83f45
libnm-util: add property NM_SETTING_BRIDGE_MAC_ADDRESS to NMSettingBridge
...
https://bugzilla.gnome.org/show_bug.cgi?id=729844
Signed-off-by: Thomas Haller <thaller@redhat.com >
2014-05-30 17:02:31 +02:00
Jiří Klimeš
810e934892
libnm-util: add nm_utils_rsa_key_encrypt_aes() encrypting RSA key with AES
2014-05-12 10:46:41 +02:00
Dan Winship
6f61b3b934
libnm-util: add nm-util-private.h header with nm_util_get_private()
2014-03-26 10:39:36 -04:00
Thomas Haller
269ab02081
test: fix failure in make check
due to invalid sorting of libnm-util/libnm-util.ver
...
Signed-off-by: Thomas Haller <thaller@redhat.com >
2014-03-06 20:09:45 +01:00
Dan Winship
4a5e2ced08
libnm-util: add nm_utils_check_virtual_device_compatibility()
...
Add a function encoding the logic of what virtual types support what
slave/parent types, so clients don't need to encode it themselves.
2014-03-06 09:37:20 -05:00
Jiří Klimeš
28bd3cab28
core: add 'type' and 'id' property for NMActiveConnection (rh #1061822 )
...
https://bugzilla.redhat.com/show_bug.cgi?id=1061822
2014-03-05 16:17:13 +01:00
Jiří Klimeš
642cfdeebf
libnm-util: add *_remove_*_by_value() functions for 'vlan' setting
...
nm_setting_vlan_remove_priority_by_value()
nm_setting_vlan_remove_priority_str_by_value()
2014-02-28 10:39:09 +01:00
Jiří Klimeš
1e5370b4d2
libnm-util: add *_remove_*_by_value() functions for '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()
2014-02-28 10:39:09 +01:00
Jiří Klimeš
de646d9588
libnm-util: add *_remove_*_by_value() functions for '802-11-wireless' setting
...
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.
2014-02-28 10:39:09 +01:00
Jiří Klimeš
ca0aa8139c
libnm-util: add *_remove_*_by_value() functions for '802-3-ethernet' setting
...
nm_setting_wired_remove_mac_blacklist_item_by_value()
and missing
nm_setting_wired_clear_mac_blacklist_items()
2014-02-28 10:39:09 +01:00
Jiří Klimeš
b59bd75956
libnm-util: add *_remove_*_by_value() functions for 'connection' setting
...
nm_setting_connection_remove_permission_by_value()
nm_setting_connection_remove_secondary_by_value()
2014-02-28 10:39:09 +01:00
Jiří Klimeš
7c817d4176
libnm-util: add *_remove_*_by_value() functions for '802-1x' setting
...
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()
2014-02-28 10:38:53 +01:00
Jiří Klimeš
1303ac3e9c
libnm-util: add *_remove_*_by_value() functions for 'ipv4' and 'ipv6' settings
...
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()
2014-02-28 10:31:41 +01:00
Dan Winship
f7b1b28202
libnm-util, libnm-glib: add device/connection describing functions
...
Add functions to describe and disambiguate devices and connections for
display to the user. Originally from libnm-gtk.
2014-01-27 15:39:51 -05:00
Thomas Haller
41f8114359
libnm-util: add nm_utils_inet[46]_ntop functions
...
https://bugzilla.gnome.org/show_bug.cgi?id=711684
Signed-off-by: Thomas Haller <thaller@redhat.com >
2013-12-09 17:21:21 +01:00
Dan Winship
16e824fe34
libnm-util: belatedly export nm_setting_generic_new()
2013-11-01 13:04:11 -04:00
Dan Williams
77e50740a8
libnm-util: add Data Center Bridging (DCB) setting
...
Includes various fixes & cleanups from Thomas Haller.
2013-10-31 13:28:42 -05:00
Thomas Haller
df4e159728
libnm-util: expose nm_setting_bond_validate_option as public API
...
Co-Authored-By: Jiří Klimeš <jklimes@redhat.com >
Signed-off-by: Thomas Haller <thaller@redhat.com >
2013-10-25 22:32:47 +02:00
Jiri Pirko
64cdb1a7f0
libnm-util: add setting for team port
...
Signed-off-by: Jiri Pirko <jiri@resnulli.us >
2013-08-15 10:54:14 -05:00
Jiri Pirko
3dcb7935a5
libnm-util: add team device setting
...
Signed-off-by: Jiri Pirko <jiri@resnulli.us >
2013-08-15 10:53:03 -05:00
Dan Williams
00203a8798
libnm-util: add gateway-ping-timeout property to connection setting
...
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.
2013-06-21 16:17:18 -05:00
Dan Winship
84468ad653
libnm-util: fix alphabetization in libnm-util.ver
...
to fix "make check"
2013-06-14 12:24:40 -03:00
Dan Winship
6854481fe8
libnm-util: add P_Key support to NMSettingInfiniband
...
Add p-key and parent properties to NMSettingInfiniband, for specifying
additional interfaces using alternate IPoIB partitions.
2013-06-13 15:52:51 -03:00
Dan Winship
9a73db17d5
libnm-util: add nm_utils_hwaddr_valid()
2013-06-13 15:52:51 -03:00
Dan Winship
82ac7da754
libnm-util: add hwaddr functions that take length rather than type
...
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.
2013-06-11 09:27:45 -03:00
Jiří Klimeš
ced61dfc7f
libnm-util: add access functions for 'mac-address-blacklist' to wired/wireless
...
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()
2013-05-07 19:38:31 +02:00
Dan Winship
8b823d7c6a
libnm-util: add NMSettingGeneric
...
Add NMSettingGeneric, a dummy L2 NMSetting for creating NMConnections
for devices that are not specifically recognized.
2013-05-07 12:46:56 -04:00
Dan Williams
bafd0d557d
libnm-util: add nm_connection_replace_settings_from_connection() (bgo #696387 )
...
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.
2013-04-17 12:23:34 -05:00
Dan Winship
5fec30d98e
Revert :carrier-detect properties and associated code
...
Ignoring carrier is generally something you want at the machine level
(eg, for a server), not at the connection level.
2013-04-03 10:23:49 -04:00
Jiří Klimeš
2109f41cc6
libnm-util: consolidate hex-string <-> bin conversion functions
...
and move them to libnm-util's nm-utils.s so that they are easily available.
2013-03-28 16:59:58 +01:00
Jiří Klimeš
d7d2015dfd
libnm-util: add nm_setting_wired_get_valid_s390_options()
2013-03-19 08:59:50 +01:00
Dan Winship
2d668d763e
libnm-util: add NMSettingConnection:interface-name
...
https://bugzilla.gnome.org/show_bug.cgi?id=693684
2013-03-13 16:45:18 -04:00
Dan Winship
feeafb8cf1
core: Update device activation for :carrier-detect
...
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
2013-02-15 13:40:39 -05:00
Dan Winship
5266e25e2b
libnm-utils: add :carrier-detect properties
...
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
2013-02-15 13:40:38 -05:00
Jiří Klimeš
bf610255a1
libnm-util: move verify_wep_key() and verify_wpa_psk() to nm-utils.c
...
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.
2013-02-06 13:29:58 +01:00
Dan Williams
d723457ac7
libnm-util: add NMSettingBridgePort
2012-11-30 13:21:50 -06:00
Dan Williams
8ecded9a9b
libnm-util: add NMSettingBridge
2012-11-30 13:21:50 -06:00
Gene Czarcinski
90b99522d7
dhcp: fix DHCPv6 to support server-side dynamic DNS (bgo #684242 )
...
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)
2012-11-16 17:26:19 -06:00
Dan Williams
e6bdb8bc55
libnm-util: add methods for AP-mode security filtering
...
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.
2012-10-17 14:07:37 -05:00
Dan Winship
74b6b9c768
libnm-util: move nm_utils_is_uuid() here
...
This is useful outside the daemon too, so move it into libnm-utils.
2012-09-26 12:14:37 -04:00
Jiří Klimeš
4ee617ddf2
libnm-util: add "secondaries" property containing secondary connection UUIDs
...
These connections are to be activated with the base connection.
2012-09-21 13:46:54 +02:00
Thomas Graf
b46508b5c6
libnm-util: move dev_valid_name() to libnm-util and make it public
...
The bridging code needs it as well.
2012-08-29 17:46:54 -05:00
Jiří Klimeš
00297f49fb
libnm-util: add nm_utils_file_is_pkcs12() for checking PKCS#12 file format
2012-07-16 14:59:59 +02:00