From owner-freebsd-current Sun Aug 13 13:46: 0 2000 Delivered-To: freebsd-current@freebsd.org Received: from peace.mahoroba.org (peace.calm.imasy.or.jp [202.227.26.34]) by hub.freebsd.org (Postfix) with ESMTP id 712F237B62A; Sun, 13 Aug 2000 13:45:52 -0700 (PDT) (envelope-from ume@mahoroba.org) Received: from localhost (IDENT:dqZidy7fH6P86B81Je1i0KP7RKxW1O/6hkHnL2BCJWgXqo0DS9Yw4g4uWSvG9vBD@localhost [::1]) (authenticated) by peace.mahoroba.org (8.11.0/8.11.0/peace) with ESMTP/inet6 id e7DKibb81781; Mon, 14 Aug 2000 05:44:37 +0900 (JST) (envelope-from ume@mahoroba.org) Date: Mon, 14 Aug 2000 05:44:34 +0900 (JST) Message-Id: <20000814.054434.115900410.ume@mahoroba.org> To: jhay@icomtek.co.za Cc: gshapiro@gshapiro.net, gshapiro@FreeBSD.ORG, freebsd-current@FreeBSD.ORG Subject: Re: sendmail updated from 8.9.3 to 8.11.0 in -current From: Hajimu UMEMOTO In-Reply-To: <200008131928.e7DJSKg20282@zibbi.mikom.csir.co.za> References: <14742.61852.184466.543141@horsey.gshapiro.net> <200008131928.e7DJSKg20282@zibbi.mikom.csir.co.za> X-Mailer: xcite1.20> Mew version 1.95b38 on Emacs 20.6 / Mule 4.0 =?iso-2022-jp?B?KBskQjJWMWMbKEIp?= X-PGP-Public-Key: http://www.imasy.org/~ume/publickey.asc X-PGP-Fingerprint: 6B 0C 53 FC 5D D0 37 91 05 D0 B3 EF 36 9B 6A BC X-URL: http://www.imasy.org/~ume/ X-OS: FreeBSD 5.0-CURRENT Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >>>>> On Sun, 13 Aug 2000 21:28:20 +0200 (SAT) >>>>> John Hay said: > jhay> There is just an annoying message because of the anycast address: > > jhay> Aug 13 16:38:47 angel sendmail[11947]: gethostbyaddr(3ffe:2900:fffa:4::) failed: 1 > > jhay> Is that because of a configuration error or just because sendmail needs > jhay> to check for anycast addresses? > > sendmail tries to get the hostnames associated with all of it's interfaces > to populate $=w (local host names). The best fix would be to create an > entry in DNS for that address. Perhaps sendmail shouldn't bother warning > on multicast addresses. Can you see if this patch makes the error go away? > jhay> I tried your second patch, but it didn't make a difference. Please try this patch. Index: sendmail-8.11.0/sendmail/conf.c diff -u sendmail-8.11.0/sendmail/conf.c.orig sendmail-8.11.0/sendmail/conf.c --- sendmail-8.11.0/sendmail/conf.c.orig Sun Jul 16 02:35:18 2000 +++ sendmail-8.11.0/sendmail/conf.c Mon Aug 14 05:34:18 2000 @@ -4771,6 +4771,11 @@ # undef __P # endif /* (_AIX4 >= 40300) && !defined(_NET_IF_H) */ # include +#if NETINET6 && !defined(SIOCGLIFCONF) +# include +# include +# include +#endif /* NETINET6 && !SIOCGLIFCONF */ #endif /* defined(SIOCGIFCONF) && !SIOCGIFCONF_IS_BROKEN */ void @@ -5009,6 +5014,9 @@ # if NETINET6 char *addr; struct in6_addr ia6; +# ifdef SIOCGIFAFLAG_IN6 + struct in6_ifreq ifr6; +# endif /* SIOCGIFAFLAG_IN6 */ # endif /* NETINET6 */ struct in_addr ia; # ifdef SIOCGIFFLAGS @@ -5093,6 +5101,22 @@ addr == NULL ? "(NULL)" : addr); continue; } + +# ifdef SIOCGIFAFLAG_IN6 + memset(&ifr6, '\0', sizeof(struct in6_ifreq)); + strncpy(ifr6.ifr_name, ifr->ifr_name, + sizeof(ifr->ifr_name)); + ifr6.ifr_addr = sa->sin6; + if (ioctl(s, SIOCGIFAFLAG_IN6, &ifr6) < 0) + { + if (tTd(0, 4)) + dprintf("SIOCGLIFFLAGS failed: %s\n", + errstring(errno)); + continue; + } + if (ifr6.ifr_ifru.ifru_flags6 & IN6_IFF_ANYCAST) + continue; +# endif /* SIOCGIFAFLAG_IN6 */ /* save IP address in text from */ addr = anynet_ntop(&ia6, buf6, sizeof buf6); -- Hajimu UMEMOTO @ Internet Mutual Aid Society Yokohama, Japan ume@mahoroba.org ume@bisd.hitachi.co.jp ume@FreeBSD.org http://www.imasy.org/~ume/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message