summaryrefslogtreecommitdiff
path: root/src/libsystemd/sd-rtnl/local-addresses.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libsystemd/sd-rtnl/local-addresses.c')
-rw-r--r--src/libsystemd/sd-rtnl/local-addresses.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsystemd/sd-rtnl/local-addresses.c b/src/libsystemd/sd-rtnl/local-addresses.c
index e520cdfa6d..31bfa06066 100644
--- a/src/libsystemd/sd-rtnl/local-addresses.c
+++ b/src/libsystemd/sd-rtnl/local-addresses.c
@@ -212,13 +212,13 @@ int local_gateways(sd_rtnl *context, int ifindex, int af, struct local_address *
continue;
/* We only care for default routes */
- r = sd_rtnl_message_route_get_dst_len(m, &dst_len);
+ r = sd_rtnl_message_route_get_dst_prefixlen(m, &dst_len);
if (r < 0)
return r;
if (dst_len != 0)
continue;
- r = sd_rtnl_message_route_get_src_len(m, &src_len);
+ r = sd_rtnl_message_route_get_src_prefixlen(m, &src_len);
if (r < 0)
return r;
if (src_len != 0)