mirror of
https://github.com/opnsense/src.git
synced 2026-06-15 11:39:33 -04:00
This combination doesn't make any sense. This socket option makes sense only on a socket that is going to be a listening one. There are two options here: refuse connect(2) on a socket that has the option set previously, or ignore (and clear) the option. After some discussion on phabricator, we have chosen the former, for safety and consistency reasons. Any programmer that runs this sequence is doing something wrong and should be informed of that with appropriate error code. Since connect(2) is a SUS API that has a defined set of error codes, none of which corresponds to "a socket has non-standard incompatible socket option set", we decided to return the same error that an already listening socket would return. Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D49150 |
||
|---|---|---|
| .. | ||
| libalias | ||
| arp.sh | ||
| broadcast.c | ||
| carp.py | ||
| carp.sh | ||
| divert.sh | ||
| fibs.sh | ||
| fibs_multibind_test.c | ||
| fibs_test.sh | ||
| forward.sh | ||
| igmp.py | ||
| ip6_v4mapped_test.c | ||
| ip_reass_test.c | ||
| lpm.sh | ||
| Makefile | ||
| Makefile.depend | ||
| output.sh | ||
| redirect.py | ||
| redirect.sh | ||
| so_reuseport_lb_test.c | ||
| socket_afinet.c | ||
| tcp_connect_port_test.c | ||
| tcp_implied_connect.c | ||
| tcp_md5_getsockopt.c | ||
| tcp_user_cookie.c | ||
| udp_bindings.c | ||
| udp_dontroute.c | ||
| udp_io.c | ||