mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-26 13:30:08 +01:00
ifcfg-rh: fix writing NETMASK in write_ip4_setting()
(cherry picked from commit efd462d946)
This commit is contained in:
parent
f2eba65dd5
commit
2bf3d590ce
1 changed files with 2 additions and 1 deletions
|
|
@ -2196,7 +2196,8 @@ write_ip4_setting (NMConnection *connection, shvarFile *ifcfg, GError **error)
|
|||
char buf[INET_ADDRSTRLEN];
|
||||
|
||||
g_free (tmp);
|
||||
svSetValueStr (ifcfg, netmask_key, nm_utils_inet4_ntop (prefix, buf));
|
||||
svSetValueStr (ifcfg, netmask_key,
|
||||
nm_utils_inet4_ntop (nm_utils_ip4_prefix_to_netmask (prefix), buf));
|
||||
}
|
||||
|
||||
svUnsetValue (ifcfg, gw_key);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue