The following jucy tidbit has been hiding in the accept(2) man page
for several years, but has apparently never been implemented.
     One can obtain user connection request data without confirming the con-
     nection by issuing a recvmsg(2) call with an msg_iovlen of 0 and a non-
     zero msg_controllen, or by issuing a getsockopt(2) request.  Similarly,
     one can provide user connection rejection information by issuing a
     sendmsg(2) call with providing only the control information, or by call-
     ing setsockopt(2).

There is no mention of this feature in the man pages for getsockopt(2),
recvmsg(2) or sendmsg(2).

Rather than correct the accept(2), I'd really like to see this
feature implemented in the kernel, and incorporated into tcp wrapper.
I think it would really help limit limit the effectivness of

Who's idea was this origionally and do they have thoughts on why
it should or should not be implemented?  Any gottchas?


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

Reply via email to