summaryrefslogtreecommitdiffhomepage
path: root/src/sock.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/sock.h')
-rw-r--r--src/sock.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sock.h b/src/sock.h
index aee5bf5..15ab4df 100644
--- a/src/sock.h
+++ b/src/sock.h
@@ -50,13 +50,14 @@ union sockaddr_union {
struct sockaddr_in6 v6;
};
-extern int opensock (const char *host, int port, const char *bind_to);
+extern int opensock (const char *host, int port, const char *bind_to, const char *bind_to_alt);
extern int listen_sock (const char *addr, uint16_t port, sblist* listen_fds);
extern int socket_nonblocking (int sock);
extern int socket_blocking (int sock);
extern int getsock_ip (int fd, char *ipaddr);
+extern int getmapped_ip (const char *ipv4mapped_conf, const char *ipaddr, char *ipaddr_mapped);
extern void getpeer_information (union sockaddr_union *addr, char *ipaddr, size_t ipaddr_len);
#endif