mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-31 05:30:17 +01:00
bond: fix parsing of arp_ip_target to platform
nm_setting_bond_get_option_normalized() is returning the arp_ip_target
IPs separated by comma instead of a blank space.
https://bugzilla.redhat.com/show_bug.cgi?id=2117202
Fixes: e064eb9d13 ('bond: use netlink to set bond options')
This commit is contained in:
parent
305f02a912
commit
003eb75eb6
1 changed files with 2 additions and 2 deletions
|
|
@ -360,7 +360,7 @@ _bond_arp_ip_target_to_platform(const char *value, in_addr_t out[static NM_BOND_
|
|||
int i;
|
||||
int added = 0;
|
||||
|
||||
ip = nm_strsplit_set(value, " ");
|
||||
ip = nm_utils_bond_option_arp_ip_targets_split(value);
|
||||
|
||||
if (!ip)
|
||||
return added;
|
||||
|
|
@ -369,7 +369,7 @@ _bond_arp_ip_target_to_platform(const char *value, in_addr_t out[static NM_BOND_
|
|||
if (added > NM_BOND_MAX_ARP_TARGETS - 1)
|
||||
break;
|
||||
if (!nm_utils_parse_inaddr_bin(AF_INET, ip[i], NULL, &in_a))
|
||||
continue;
|
||||
nm_assert_not_reached(); /* verify() already validated the IP addresses */
|
||||
|
||||
out[added++] = in_a;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue