sm_gethost.c (66494) | sm_gethost.c (71345) |
---|---|
1/* 2 * Copyright (c) 1999-2000 Sendmail, Inc. and its suppliers. 3 * All rights reserved. 4 * 5 * By using this file, you agree to the terms and conditions set 6 * forth in the LICENSE file which can be found at the top level of 7 * the sendmail distribution. 8 * 9 */ 10 11#ifndef lint | 1/* 2 * Copyright (c) 1999-2000 Sendmail, Inc. and its suppliers. 3 * All rights reserved. 4 * 5 * By using this file, you agree to the terms and conditions set 6 * forth in the LICENSE file which can be found at the top level of 7 * the sendmail distribution. 8 * 9 */ 10 11#ifndef lint |
12static char id[] = "@(#)$Id: sm_gethost.c,v 8.7.8.2 2000/09/17 17:04:24 gshapiro Exp $"; | 12static char id[] = "@(#)$Id: sm_gethost.c,v 8.7.8.4 2000/12/19 04:26:33 gshapiro Exp $"; |
13#endif /* ! lint */ 14 15#if _FFR_MILTER 16#include <sendmail.h> 17#if NETINET || NETINET6 18# include <arpa/inet.h> 19#endif /* NETINET || NETINET6 */ 20 --- 35 unchanged lines hidden (view full) --- 56 } 57 h_errno = 0; 58 h = gethostbyname(name); 59 *err = h_errno; 60 if (family == AF_INET6 && !resv6) 61 _res.options &= ~RES_USE_INET6; 62 return h; 63} | 13#endif /* ! lint */ 14 15#if _FFR_MILTER 16#include <sendmail.h> 17#if NETINET || NETINET6 18# include <arpa/inet.h> 19#endif /* NETINET || NETINET6 */ 20 --- 35 unchanged lines hidden (view full) --- 56 } 57 h_errno = 0; 58 h = gethostbyname(name); 59 *err = h_errno; 60 if (family == AF_INET6 && !resv6) 61 _res.options &= ~RES_USE_INET6; 62 return h; 63} |
64 65# if _FFR_FREEHOSTENT 66void 67freehostent(h) 68 struct hostent *h; 69{ 70 /* 71 ** Stub routine -- if they don't have getipnodeby*(), 72 ** they probably don't have the free routine either. 73 */ 74 75 return; 76} 77# endif /* _FFR_FREEHOSTENT */ |
|
64#endif /* NEEDSGETIPNODE && NETINET6 && __RES < 19990909 */ 65 66struct hostent * 67mi_gethostbyname(name, family) 68 char *name; 69 int family; 70{ 71 struct hostent *h = NULL; --- 28 unchanged lines hidden --- | 78#endif /* NEEDSGETIPNODE && NETINET6 && __RES < 19990909 */ 79 80struct hostent * 81mi_gethostbyname(name, family) 82 char *name; 83 int family; 84{ 85 struct hostent *h = NULL; --- 28 unchanged lines hidden --- |