libnm: add nm_utils_bond_option_arp_ip_targets_split() helper

Note yet used. The way how we split the option is relevant at various
places. The code should use the same helper function.

(cherry picked from commit 4ee0e8f075)
This commit is contained in:
Thomas Haller 2020-07-02 17:12:35 +02:00
parent b5e5356ad5
commit 2f43cde20d
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728
2 changed files with 12 additions and 0 deletions

View file

@ -10,6 +10,14 @@
/*****************************************************************************/
const char **
nm_utils_bond_option_arp_ip_targets_split (const char *arp_ip_target)
{
return nm_utils_strsplit_set_full (arp_ip_target, ",", NM_UTILS_STRSPLIT_SET_FLAGS_STRSTRIP);
}
/*****************************************************************************/
gboolean
nm_utils_vlan_priority_map_parse_str (NMVlanPriorityMap map_type,
const char *str,

View file

@ -46,6 +46,10 @@ NM_AUTO_DEFINE_FCN0 (NMWireGuardPeer *, _nm_auto_unref_wgpeer, nm_wireguard_peer
/****************************************************************************/
const char **nm_utils_bond_option_arp_ip_targets_split (const char *arp_ip_target);
/*****************************************************************************/
static inline guint32
nm_utils_vlan_priority_map_get_max_prio (NMVlanPriorityMap map, gboolean from)
{