From b69bfa43052586cd6894c32d7d3d447195539ec5 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Mon, 31 Jan 2022 19:26:51 +0900 Subject: network: do not remove localhost address Managing loopback interfaces by networkd is not recommended, but supporeted. Even such spurious situation, do not drop the localhost addresses. --- src/basic/in-addr-util.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/basic/in-addr-util.h') diff --git a/src/basic/in-addr-util.h b/src/basic/in-addr-util.h index 0178391e5f..5de87a9539 100644 --- a/src/basic/in-addr-util.h +++ b/src/basic/in-addr-util.h @@ -49,6 +49,7 @@ bool in6_addr_is_link_local_all_nodes(const struct in6_addr *a); bool in4_addr_is_localhost(const struct in_addr *a); int in_addr_is_localhost(int family, const union in_addr_union *u); +int in_addr_is_localhost_one(int family, const union in_addr_union *u); bool in4_addr_is_local_multicast(const struct in_addr *a); bool in4_addr_is_non_local(const struct in_addr *a); -- cgit v1.2.1