Subject: Re: Bind to local iface: bug or feautre.
To: None <tech-net@NetBSD.ORG>
From: der Mouse <mouse@Holo.Rodents.Montreal.QC.CA>
List: tech-net
Date: 12/02/1996 12:03:56
>> The sockaddr_in needs to zeroed out because a bit-by-bit comparison
>> is done in `in_pcbbind' with `ifa_ifwithaddr'

> Any more opoinions about this being a bug?  (Just to be sure of your
> opinion before filing a PR).

In my opinion it is a bug and deserves a PR.

Someone (mycroft?) said something about it not being a bug because it's
documented somewhere.  I don't see documentation for it anywhere;
bind(2) points at the section 4 manpages, and neither ip(4) nor tcp(4)
said anything about the structure of a sockaddr_in as far as I could
tell, never mind what the semantics of the sin_zero array are.  tcp(4)
does refer to inet(4), which lists the members of the structure, but
does not give any semantics for any of them.

Even if documented, I still say it's a bug.  As someone else remarked
in this connection, "be liberal in what you accept"....

					der Mouse

		     7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B