1N/A * Copyright (c) 1999-2001, 2004, 2010 Sendmail, Inc. and its suppliers. 1N/A * All rights reserved. 1N/A * By using this file, you agree to the terms and conditions set 1N/A * forth in the LICENSE file which can be found at the top level of 1N/A * the sendmail distribution. 1N/A#
endif /* NETINET || NETINET6 */ 1N/A** MI_GETHOSTBY{NAME,ADDR} -- compatibility routines for gethostbyXXX 1N/A** Some operating systems have wierd problems with the gethostbyXXX 1N/A** routines. For example, Solaris versions at least through 2.3 1N/A** don't properly deliver a canonical h_name field. This tries to 1N/A** work around these problems. 1N/A** Support IPv6 as well as IPv4. 1N/A#
endif /* ! AI_ADDRCONFIG */ 1N/A#
endif /* ! AI_ALL */ 1N/A#
endif /* ! AI_DEFAULT */ 1N/A /* From RFC2133, section 6.1 */ 1N/A ** Stub routine -- if they don't have getipnodeby*(), 1N/A ** they probably don't have the free routine either. 1N/A#
else /* NEEDSGETIPNODE && NETINET6 */ 1N/A#
endif /* NEEDSGETIPNODE && NETINET6 */ 1N/A#
else /* SOLARIS == 20300 || SOLARIS == 203 */ 1N/A#
endif /* SOLARIS == 20300 || SOLARIS == 203 */ 1N/A#
else /* (SOLARIS > 10000 && SOLARIS < 20400) || (defined(SOLARIS) && SOLARIS < 204) || (defined(sony_news) && defined(__svr4)) */ 1N/A#
endif /* NETINET6 */ 1N/A#
endif /* ADDRCONFIG_IS_BROKEN */ 1N/A#
else /* NETINET6 */ 1N/A#
endif /* NETINET6 */ 1N/A#
endif /* (SOLARIS > 10000 && SOLARIS < 20400) || (defined(SOLARIS) && SOLARIS < 204) || (defined(sony_news) && defined(__svr4)) */ 1N/A** MI_INET_PTON -- convert printed form to network address. 1N/A** Wrapper for inet_pton() which handles IPv6: labels. 1N/A** family -- address family 1N/A** dst -- destination address structure 1N/A** 1 if the address was valid 1N/A** 0 if the address wasn't parseable 1N/A#
endif /* NETINET6 */