[Bug 262172] UNIX Domain bind() - distinguish between random garbage and alive listening socket

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 08 Sep 2022 04:20:04 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=262172

Gleb Smirnoff <glebius@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|net@FreeBSD.org             |glebius@FreeBSD.org
                 CC|                            |glebius@FreeBSD.org
             Status|New                         |Open

--- Comment #7 from Gleb Smirnoff <glebius@FreeBSD.org> ---
I like your patch. Note that EFTYPE and EEXIST are not listed in specification
for bind(2), thus this allows us consider suggested functionality to be an
extension over specification.

https://pubs.opengroup.org/onlinepubs/9699919799/functions/bind.html

May I ask you to do two things:

1) Check how these edge cases work on other popular POSIX OSes, at least Linux
and Mac OS X. If they also do something smart here, we probably should stay
compatible with them.

2) If step 1) doesn't uncover need for any additions, please document in
bind(2) cross referencing to unix(4).

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