diff options
author | jorton <jorton@13f79535-47bb-0310-9956-ffa450edef68> | 2017-11-28 08:53:13 +0000 |
---|---|---|
committer | jorton <jorton@13f79535-47bb-0310-9956-ffa450edef68> | 2017-11-28 08:53:13 +0000 |
commit | 78d8a9229c72e1f31cb16900e11c4baccae5d38f (patch) | |
tree | 46a20c09edf04f7198f163262c487e6fefe5f738 /include/arch | |
parent | 66a2a6844b1abf8acad0e5e4f735ddbbd01953a3 (diff) | |
download | libapr-78d8a9229c72e1f31cb16900e11c4baccae5d38f.tar.gz |
Support IPv6 link-local address scope/zone mapping.
* network_io/unix/sockaddr.c (apr_sockaddr_zone_set,
apr_sockaddr_zone_get): New functions.
(apr_sockaddr_ip_getbuf): Append %scope for link-local address.
(apr_sockaddr_equal): Compare link-local address with different
scopes as not equal.
* include/apr_network_io.h: Add function declarations.
* configure.in: Test for if_indextoname and if_nametoindex.
* test/testsock.c (test_zone): New test case.
* include/arch/win32/apr_private.h: Assume Windows supports
if_nametoindex and if_indextoname.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1816527 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include/arch')
-rw-r--r-- | include/arch/win32/apr_private.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/arch/win32/apr_private.h b/include/arch/win32/apr_private.h index 10e4656d1..9f12efa18 100644 --- a/include/arch/win32/apr_private.h +++ b/include/arch/win32/apr_private.h @@ -134,6 +134,8 @@ APR_DECLARE_DATA int errno; #if APR_HAVE_IPV6 #define HAVE_GETADDRINFO 1 #define HAVE_GETNAMEINFO 1 +#define HAVE_IF_INDEXTONAME 1 +#define HAVE_IF_NAMETOINDEX 1 #endif /* MSVC 7.0 introduced _strtoi64 */ |