summaryrefslogtreecommitdiff
path: root/sysdep/unix/io.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdep/unix/io.c')
-rw-r--r--sysdep/unix/io.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sysdep/unix/io.c b/sysdep/unix/io.c
index d72161f1..2dced67a 100644
--- a/sysdep/unix/io.c
+++ b/sysdep/unix/io.c
@@ -609,8 +609,8 @@ sk_insert(sock *s)
#ifdef IPV6
-static void
-fill_in_sockaddr(sockaddr *sa, ip_addr a, struct iface *ifa, unsigned port)
+void
+fill_in_sockaddr(struct sockaddr_in6 *sa, ip_addr a, struct iface *ifa, unsigned port)
{
memset(sa, 0, sizeof (struct sockaddr_in6));
sa->sin6_family = AF_INET6;
@@ -625,7 +625,7 @@ fill_in_sockaddr(sockaddr *sa, ip_addr a, struct iface *ifa, unsigned port)
sa->sin6_scope_id = ifa->index;
}
-static void
+void
get_sockaddr(struct sockaddr_in6 *sa, ip_addr *a, struct iface **ifa, unsigned *port, int check)
{
if (check && sa->sin6_family != AF_INET6)
@@ -641,8 +641,8 @@ get_sockaddr(struct sockaddr_in6 *sa, ip_addr *a, struct iface **ifa, unsigned *
#else
-static void
-fill_in_sockaddr(sockaddr *sa, ip_addr a, struct iface *ifa, unsigned port)
+void
+fill_in_sockaddr(struct sockaddr_in *sa, ip_addr a, struct iface *ifa, unsigned port)
{
memset (sa, 0, sizeof (struct sockaddr_in));
sa->sin_family = AF_INET;
@@ -653,7 +653,7 @@ fill_in_sockaddr(sockaddr *sa, ip_addr a, struct iface *ifa, unsigned port)
set_inaddr(&sa->sin_addr, a);
}
-static void
+void
get_sockaddr(struct sockaddr_in *sa, ip_addr *a, struct iface **ifa, unsigned *port, int check)
{
if (check && sa->sin_family != AF_INET)