[Bug 191586] FreeBSD doesn't validate negative edgecases in bind(2)/connect(2)/listen(2) like POSIX requires

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Jul 7 06:33:10 UTC 2014


--- Comment #6 from Terry Lambert <lambert.tr at gmail.com> ---
I didn't miss it.

The test is still testing AF_MAX + 10, and assuming the existence of a
particular set of AF's that are not mandated by POSIX, in order to provide the
negative assertion.

I believe the actual VSX4 tests use AF_UNIX, per the "shall define" description
for <sys/socket.h>.  Given the #ifdef's to allow condition deletion of
AF_INET/AF_INET6 support, this makes more sense anyway.

I also believe the specific failure case was added to the error messages
because of the unique nature of the Linux TCP implementation regarding the
"simultaneous connect" case in section 3.4 of RFC 793, which Linux handles

I still believe that the test should be done in upper level code, and yes, I am
aware that that would mean adding fields to the protocol family structure to
allw it to be done in a protocol independent fashion.

Look at it this way: if I add XNS, RTSP, or some other protocol support, it's
going to fail this negative assertion test when it shouldn't, since the API is
supposed to be protocol agnostic.  Does that seem right to you?

You are receiving this mail because:
You are the assignee for the bug.

More information about the freebsd-standards mailing list