Remove support for legacy systems without in6addr_any
This commit is contained in:
@@ -36,12 +36,6 @@
|
||||
*/
|
||||
@ISC_PLATFORM_HAVESALEN@
|
||||
|
||||
/*! \brief
|
||||
* If this system is missing in6addr_any, ISC_PLATFORM_NEEDIN6ADDRANY will
|
||||
* be defined.
|
||||
*/
|
||||
@ISC_PLATFORM_NEEDIN6ADDRANY@
|
||||
|
||||
/*! \brief
|
||||
* If this system is missing in6addr_loopback, ISC_PLATFORM_NEEDIN6ADDRLOOPBACK
|
||||
* will be defined.
|
||||
|
||||
@@ -80,21 +80,6 @@
|
||||
#include <isc/lang.h>
|
||||
#include <isc/types.h>
|
||||
|
||||
#ifndef IN6ADDR_ANY_INIT
|
||||
#ifdef s6_addr
|
||||
/*%
|
||||
* Required for some pre RFC2133 implementations.
|
||||
* IN6ADDR_ANY_INIT and IN6ADDR_LOOPBACK_INIT were added in
|
||||
* draft-ietf-ipngwg-bsd-api-04.txt or draft-ietf-ipngwg-bsd-api-05.txt.
|
||||
* If 's6_addr' is defined then assume that there is a union and three
|
||||
* levels otherwise assume two levels required.
|
||||
*/
|
||||
#define IN6ADDR_ANY_INIT { { { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 } } }
|
||||
#else
|
||||
#define IN6ADDR_ANY_INIT { { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 } }
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef IN6ADDR_LOOPBACK_INIT
|
||||
#ifdef s6_addr
|
||||
/*% IPv6 address loopback init */
|
||||
@@ -208,14 +193,6 @@ struct sockaddr_storage {
|
||||
};
|
||||
#endif
|
||||
|
||||
#if defined(ISC_PLATFORM_NEEDIN6ADDRANY)
|
||||
extern const struct in6_addr isc_net_in6addrany;
|
||||
/*%
|
||||
* Cope with a missing in6addr_any and in6addr_loopback.
|
||||
*/
|
||||
#define in6addr_any isc_net_in6addrany
|
||||
#endif
|
||||
|
||||
#if defined(ISC_PLATFORM_NEEDIN6ADDRLOOPBACK)
|
||||
extern const struct in6_addr isc_net_in6addrloop;
|
||||
#define in6addr_loopback isc_net_in6addrloop
|
||||
|
||||
@@ -93,10 +93,6 @@
|
||||
|
||||
#endif /* HAVE_SYSCTLBYNAME */
|
||||
|
||||
#if defined(ISC_PLATFORM_NEEDIN6ADDRANY)
|
||||
const struct in6_addr isc_net_in6addrany = IN6ADDR_ANY_INIT;
|
||||
#endif
|
||||
|
||||
#if defined(ISC_PLATFORM_NEEDIN6ADDRLOOPBACK)
|
||||
const struct in6_addr isc_net_in6addrloop = IN6ADDR_LOOPBACK_INIT;
|
||||
#endif
|
||||
|
||||
@@ -14,8 +14,5 @@
|
||||
#include <isc/net.h>
|
||||
#include <isc/platform.h>
|
||||
|
||||
LIBISC_EXTERNAL_DATA const struct in6_addr isc_in6addr_any =
|
||||
IN6ADDR_ANY_INIT;
|
||||
|
||||
LIBISC_EXTERNAL_DATA const struct in6_addr isc_in6addr_loopback =
|
||||
IN6ADDR_LOOPBACK_INIT;
|
||||
|
||||
@@ -40,10 +40,6 @@
|
||||
#define ISC_NET_PORTRANGEHIGH 65535
|
||||
#endif /* ISC_NET_PORTRANGEHIGH */
|
||||
|
||||
#if defined(ISC_PLATFORM_NEEDIN6ADDRANY)
|
||||
const struct in6_addr isc_net_in6addrany = IN6ADDR_ANY_INIT;
|
||||
#endif
|
||||
|
||||
static isc_once_t once = ISC_ONCE_INIT;
|
||||
static isc_once_t once_ipv6only = ISC_ONCE_INIT;
|
||||
static isc_once_t once_ipv6pktinfo = ISC_ONCE_INIT;
|
||||
|
||||
Reference in New Issue
Block a user