opnsense-src/sys/dev/hyperv
Gleb Smirnoff cfb1e92912 sockets: don't malloc/free sockaddr memory on accept(2)
Let the accept functions provide stack memory for protocols to fill it in.
Generic code should provide sockaddr_storage, specialized code may provide
smaller structure.

While rewriting accept(2) make 'addrlen' a true in/out parameter, reporting
required length in case if provided length was insufficient.  Our manual
page accept(2) and POSIX don't explicitly require that, but one can read
the text as they do.  Linux also does that. Update tests accordingly.

Reviewed by:		rscheff, tuexen, zlei, dchagin
Differential Revision:	https://reviews.freebsd.org/D42635
2023-11-30 08:30:55 -08:00
..
hvsock sockets: don't malloc/free sockaddr memory on accept(2) 2023-11-30 08:30:55 -08:00
include sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
input sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
netvsc bpf: Add IfAPI analogue for bpf_peers_present() 2023-10-13 14:33:31 -04:00
pcib hyperv/vmbus: Flip a message to only be emitted on failure 2023-09-11 16:51:46 +08:00
storvsc sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
utilities sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
vmbus sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00