aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorMichael Tuexen <tuexen@FreeBSD.org>2020-07-16 16:46:24 +0000
committerMichael Tuexen <tuexen@FreeBSD.org>2020-07-16 16:46:24 +0000
commitf903a308a1b11599b6ff33725fd591a2ef685b4c (patch)
tree2f8dd797ac01b5db8e5aec5691d022a77a972ba6 /contrib
parent2cc8a524af85aa81ee3c948c2e741efefe500a01 (diff)
downloadsrc-f903a308a1b11599b6ff33725fd591a2ef685b4c.tar.gz
src-f903a308a1b11599b6ff33725fd591a2ef685b4c.zip
(Re)-allow 0.0.0.0 to be used as an address in connect() for TCP
In r361752 an error handling was introduced for using 0.0.0.0 or 255.255.255.255 as the address in connect() for TCP, since both addresses can't be used. However, the stack maps 0.0.0.0 implicitly to a local address and at least two regressions were reported. Therefore, re-allow the usage of 0.0.0.0. While there, change the error indicated when using 255.255.255.255 from EAFNOSUPPORT to EACCES as mentioned in the man-page of connect(). Reviewed by: rrs MFC after: 1 week Sponsored by: Netflix, Inc. Differential Revision: https://reviews.freebsd.org/D25401
Notes
Notes: svn path=/head/; revision=363256
Diffstat (limited to 'contrib')
0 files changed, 0 insertions, 0 deletions