Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Sep 2001 21:15:44 -0700
From:      Bill Fenner <fenner@research.att.com>
To:        hm@hcs.de
Cc:        mharnois@cpinternet.com, charon@labs.gr, freebsd-current@freebsd.org
Subject:   Re: postfix fails to start
Message-ID:  <200109110415.VAA02358@windsor.research.att.com>

next in thread | raw e-mail | index | archive | help

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<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
...
        inet 135.197.10.172 netmask 0xffffff80 broadcast 135.197.10.255
...
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200109110415.VAA02358>