libnm-core: change all mac-address properties to G_TYPE_STRING
Make all mac-address properties (including NMSettingBluetooth:bdaddr, NMSettingOlpcMesh:dhcp-anycast-addr, and NMSettingWireless:bssid) be strings, using _nm_setting_class_transform_property() to handle translating to/from binary form when dealing with D-Bus. Update everything accordingly for the change, and also add a test for transformed setting properties to test-general.
This commit is contained in:
@@ -28,7 +28,7 @@
|
||||
#include "nm-connection.h"
|
||||
#include "nm-platform.h"
|
||||
|
||||
gboolean nm_ethernet_address_is_valid (const guint8 *test_addr);
|
||||
gboolean nm_ethernet_address_is_valid (gconstpointer addr, gsize len);
|
||||
|
||||
in_addr_t nm_utils_ip4_address_clear_host_address (in_addr_t addr, guint8 plen);
|
||||
void nm_utils_ip6_address_clear_host_address (struct in6_addr *dst, const struct in6_addr *src, guint8 plen);
|
||||
|
Reference in New Issue
Block a user