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
stash% ifconfig -a
        inet netmask 0xffffff80 broadcast
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
        inet netmask 0xff000000 
stash% uname -a
FreeBSD 5.0-CURRENT FreeBSD 5.0-CURRENT #25: Mon Sep 10 17:03:15 
PDT 2001     [EMAIL PROTECTED]:/usr/obj/usr/src/sys/STASH  i386


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to