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     [EMAIL PROTECTED]:/usr/obj/usr/src/sys/STASH  i386


  Bill

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

Reply via email to