From owner-freebsd-current Mon Sep 10 21:15:58 2001 Delivered-To: freebsd-current@freebsd.org Received: from mail-blue.research.att.com (mail-blue.research.att.com [135.207.30.102]) by hub.freebsd.org (Postfix) with ESMTP id A0A2837B403 for ; Mon, 10 Sep 2001 21:15:55 -0700 (PDT) Received: from alliance.research.att.com (alliance.research.att.com [135.207.26.26]) by mail-blue.research.att.com (Postfix) with ESMTP id B0AC34CE83; Tue, 11 Sep 2001 00:15:54 -0400 (EDT) Received: from windsor.research.att.com (windsor.research.att.com [135.207.26.46]) by alliance.research.att.com (8.8.7/8.8.7) with ESMTP id AAA16095; Tue, 11 Sep 2001 00:15:45 -0400 (EDT) From: Bill Fenner Received: (from fenner@localhost) by windsor.research.att.com (8.8.8+Sun/8.8.5) id VAA02358; Mon, 10 Sep 2001 21:15:45 -0700 (PDT) Message-Id: <200109110415.VAA02358@windsor.research.att.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII To: hm@hcs.de Subject: Re: postfix fails to start Cc: mharnois@cpinternet.com, charon@labs.gr, freebsd-current@freebsd.org Date: Mon, 10 Sep 2001 21:15:44 -0700 Versions: dmail (solaris) 2.2j/makemail 2.9b Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG The testing I've done shows that postfix is buggy in two ways: - The main() in inet_addr_local.c assumes that the addresses in addr_list and mask_list are sockaddrs, but this is only true when using IPv6. This only affects testing with -DTEST. - inet_addr_local() calls inet_addr_list_append(..., struct in_addr) even when -DINET6 when inet_addr_list_append() takes a second argument of struct sockaddr *. When I fix the bugs in main() and compile without -DINET6 to avoid the bug in inet_addr_local(), the test code seems to print the right things. stash% ./TEST 135.197.10.172/255.255.255.128 127.0.0.1/255.0.0.0 stash% ifconfig -a dc0: flags=8843 mtu 1500 ... inet 135.197.10.172 netmask 0xffffff80 broadcast 135.197.10.255 ... lo0: flags=8049 mtu 16384 ... inet 127.0.0.1 netmask 0xff000000 stash% uname -a FreeBSD stash.attlabs.att.com 5.0-CURRENT FreeBSD 5.0-CURRENT #25: Mon Sep 10 17:03:15 PDT 2001 root@stash.attlabs.att.com:/usr/obj/usr/src/sys/STASH i386 Bill To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message