daemon.c (935205e2307611615ed5a7fe0a32b225ffd8c19c) | daemon.c (ba00ec3d539f213abbda3a45ef8c539306cac098) |
---|---|
1/* 2 * Copyright (c) 1998-2007, 2009, 2010 Sendmail, Inc. and its suppliers. 3 * All rights reserved. 4 * Copyright (c) 1983, 1995-1997 Eric P. Allman. All rights reserved. 5 * Copyright (c) 1988, 1993 6 * The Regents of the University of California. All rights reserved. 7 * 8 * By using this file, you agree to the terms and conditions set 9 * forth in the LICENSE file which can be found at the top level of 10 * the sendmail distribution. 11 * 12 */ 13 14#include <sendmail.h> 15#include "map.h" 16 | 1/* 2 * Copyright (c) 1998-2007, 2009, 2010 Sendmail, Inc. and its suppliers. 3 * All rights reserved. 4 * Copyright (c) 1983, 1995-1997 Eric P. Allman. All rights reserved. 5 * Copyright (c) 1988, 1993 6 * The Regents of the University of California. All rights reserved. 7 * 8 * By using this file, you agree to the terms and conditions set 9 * forth in the LICENSE file which can be found at the top level of 10 * the sendmail distribution. 11 * 12 */ 13 14#include <sendmail.h> 15#include "map.h" 16 |
17SM_RCSID("@(#)$Id: daemon.c,v 8.691 2011/01/25 18:31:30 ca Exp $") | 17SM_RCSID("@(#)$Id: daemon.c,v 8.694 2012/03/03 00:10:42 ca Exp $") |
18 19#if defined(SOCK_STREAM) || defined(__GNU_LIBRARY__) 20# define USE_SOCK_STREAM 1 21#endif /* defined(SOCK_STREAM) || defined(__GNU_LIBRARY__) */ 22 23#if defined(USE_SOCK_STREAM) 24# if NETINET || NETINET6 25# include <arpa/inet.h> --- 796 unchanged lines hidden (view full) --- 822 finis(false, true, EX_OK); 823 } 824 sm_io_automode(inchannel, outchannel); 825 826 InChannel = inchannel; 827 OutChannel = outchannel; 828 DisConnected = false; 829 | 18 19#if defined(SOCK_STREAM) || defined(__GNU_LIBRARY__) 20# define USE_SOCK_STREAM 1 21#endif /* defined(SOCK_STREAM) || defined(__GNU_LIBRARY__) */ 22 23#if defined(USE_SOCK_STREAM) 24# if NETINET || NETINET6 25# include <arpa/inet.h> --- 796 unchanged lines hidden (view full) --- 822 finis(false, true, EX_OK); 823 } 824 sm_io_automode(inchannel, outchannel); 825 826 InChannel = inchannel; 827 OutChannel = outchannel; 828 DisConnected = false; 829 |
830 |
|
830#if XLA 831 if (!xla_host_ok(RealHostName)) 832 { 833 message("421 4.4.5 Too many SMTP sessions for this host"); 834 finis(false, true, EX_OK); 835 } 836#endif /* XLA */ 837 /* find out name for interface of connection */ --- 3562 unchanged lines hidden (view full) --- 4400 struct in6_addr in6_addr; 4401# endif /* NETINET6 */ 4402 4403# if NAMED_BIND 4404 /* shorten name server timeout to avoid higher level timeouts */ 4405 saveretry = _res.retry; 4406 if (_res.retry * _res.retrans > 20) 4407 _res.retry = 20 / _res.retrans; | 831#if XLA 832 if (!xla_host_ok(RealHostName)) 833 { 834 message("421 4.4.5 Too many SMTP sessions for this host"); 835 finis(false, true, EX_OK); 836 } 837#endif /* XLA */ 838 /* find out name for interface of connection */ --- 3562 unchanged lines hidden (view full) --- 4401 struct in6_addr in6_addr; 4402# endif /* NETINET6 */ 4403 4404# if NAMED_BIND 4405 /* shorten name server timeout to avoid higher level timeouts */ 4406 saveretry = _res.retry; 4407 if (_res.retry * _res.retrans > 20) 4408 _res.retry = 20 / _res.retrans; |
4409 if (_res.retry == 0) 4410 _res.retry = 1; |
|
4408# endif /* NAMED_BIND */ 4409 4410 switch (sap->sa.sa_family) 4411 { 4412# if NETINET 4413 case AF_INET: 4414 hp = sm_gethostbyaddr((char *) &sap->sin.sin_addr, 4415 INADDRSZ, AF_INET); --- 82 unchanged lines hidden --- | 4411# endif /* NAMED_BIND */ 4412 4413 switch (sap->sa.sa_family) 4414 { 4415# if NETINET 4416 case AF_INET: 4417 hp = sm_gethostbyaddr((char *) &sap->sin.sin_addr, 4418 INADDRSZ, AF_INET); --- 82 unchanged lines hidden --- |