mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-18 02:50:30 +01:00
ifcfg-rh: fix writing NETMASK in write_ip4_setting()
This commit is contained in:
parent
2a5076f9ee
commit
efd462d946
1 changed files with 2 additions and 1 deletions
|
|
@ -2183,7 +2183,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