diff options
author | Thomas Haller <thaller@redhat.com> | 2021-05-06 19:43:10 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2021-05-11 13:56:48 +0200 |
commit | 463db1c7a605972ec7f0b05e0a59dbc9b6208756 (patch) | |
tree | 4b038ab09f09da45a4dc65815e8e4ca75a3b4b59 | |
parent | b487cf30a9dfaf80244b2d34e6678511ad45e165 (diff) | |
download | NetworkManager-463db1c7a605972ec7f0b05e0a59dbc9b6208756.tar.gz |
tui: use internal _nm_utils_ip4_prefix_to_netmask() helper
nm_utils_ip4_prefix_to_netmask() is public API of libnm.
As we also want to have this function at a few places where
we don't have libnm, we have an internal variant
_nm_utils_ip4_prefix_to_netmask().
Use the internal variant consistently and everywhere.
-rw-r--r-- | src/nmtui/nm-editor-bindings.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nmtui/nm-editor-bindings.c b/src/nmtui/nm-editor-bindings.c index 162e8b1b38..2b1c474847 100644 --- a/src/nmtui/nm-editor-bindings.c +++ b/src/nmtui/nm-editor-bindings.c @@ -444,7 +444,7 @@ ip_route_transform_from_dest_string(GBinding * binding, inet_pton(addr_family, addrstr, &v4); if (nm_utils_ip_is_site_local(AF_INET, &v4)) { prefix = nm_utils_ip4_get_default_prefix(v4); - if (v4 & (~nm_utils_ip4_prefix_to_netmask(prefix))) + if (v4 & (~_nm_utils_ip4_prefix_to_netmask(prefix))) prefix = 32; } else prefix = 32; |