aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmocom/core/sockaddr_str.h
diff options
context:
space:
mode:
authorneels <nhofmeyr@sysmocom.de>2022-08-17 00:57:00 +0000
committerneels <nhofmeyr@sysmocom.de>2022-08-17 14:05:18 +0000
commit709da278cac44922c46bb57ee1a6b2555b5d6779 (patch)
treeba1390d244ec1b7eb829ad6ae4fef877cf2f2601 /include/osmocom/core/sockaddr_str.h
parent9e4c2ebf18f7c268a7c35080fe8036670a644317 (diff)
Revert "Add function to guess AF_UNSPEC address"
This reverts commit a4063efa7deb6632c228037c47effca22ad0f781. Reason for revert: It is not possible to guess the IP address family from uninitialized memory. This function simply glorifies random noise into an IPv6 address. It makes no sense to have it. Change-Id: Ifadd614604cf9d0c2ed1a405493c1c3fcb37ae23
Diffstat (limited to 'include/osmocom/core/sockaddr_str.h')
-rw-r--r--include/osmocom/core/sockaddr_str.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/osmocom/core/sockaddr_str.h b/include/osmocom/core/sockaddr_str.h
index a46ad595..f474fa03 100644
--- a/include/osmocom/core/sockaddr_str.h
+++ b/include/osmocom/core/sockaddr_str.h
@@ -41,7 +41,6 @@ struct sockaddr_in6;
*/
int osmo_ip_str_type(const char *ip);
-unsigned osmo_sockaddr_guess_unspec(const struct sockaddr *src);
struct osmo_sockaddr_str {
/*! AF_INET for IPv4 address, or AF_INET6 for IPv6 address. */