summaryrefslogtreecommitdiff
path: root/include/libHX/socket.h
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2023-01-29 16:17:51 +0100
committerJörg Frings-Fürst <debian@jff-webhosting.net>2023-01-29 16:17:51 +0100
commitbfef0924f58eab930bdd826ac0132786abc32220 (patch)
treec37bbc77063f3477236ce4cb7d765794f2018555 /include/libHX/socket.h
parent8132c809273676b684f426ae8c0f8b1e6f40166e (diff)
New upstream version 4.10upstream/4.10
Diffstat (limited to 'include/libHX/socket.h')
-rw-r--r--include/libHX/socket.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/libHX/socket.h b/include/libHX/socket.h
index b151682..e9db77f 100644
--- a/include/libHX/socket.h
+++ b/include/libHX/socket.h
@@ -5,6 +5,7 @@
# include <ws2tcpip.h>
#else
# include <netdb.h>
+# include <sys/socket.h>
#endif
#ifdef __cplusplus
@@ -12,6 +13,8 @@ extern "C" {
#endif
extern int HX_socket_from_env(const struct addrinfo *, const char *intf);
+extern int HX_sockaddr_is_local(const struct sockaddr *, socklen_t, unsigned int flags);
+extern int HX_ipaddr_is_local(const char *, unsigned int flags);
#ifdef __cplusplus
} /* extern "C" */