libnm-util: add ether_ntoa/ether_aton-like utility methods
nm_utils_hwaddr_ntoa() and nm_utils_hwaddr_aton() are like ether_ntoa()/ether_aton(), but handle IPoIB too. nm_utils_hwaddr_atoba() is like _aton() but returns a GByteArray, since that's what's wanted in many places. Also remove nm_ether_ntop() and replace uses of it with nm_utils_hwaddr_ntoa().
This commit is contained in:

committed by
Dan Williams

parent
3dcfd305d6
commit
2510c617ec
@@ -37,8 +37,6 @@ gboolean nm_ethernet_address_is_valid (const struct ether_addr *test_addr);
|
||||
|
||||
int nm_spawn_process (const char *args);
|
||||
|
||||
char *nm_ether_ntop (const struct ether_addr *mac);
|
||||
|
||||
void nm_utils_merge_ip4_config (NMIP4Config *ip4_config, NMSettingIP4Config *setting);
|
||||
void nm_utils_merge_ip6_config (NMIP6Config *ip6_config, NMSettingIP6Config *setting);
|
||||
|
||||
|
Reference in New Issue
Block a user