opnsense-src/tests/sys
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
..
acl dirdeps: Update Makefile.depend* files with empty contents 2023-10-29 17:01:04 -04:00
aio Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
audit Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
auditpipe Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
capsicum tests: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:01 -07:00
cddl zfsd: fault disks that generate too many I/O delay events 2023-11-29 07:51:11 -07:00
common tests: Use ifconfig -j instead of jexec ifconfig. 2023-10-06 18:40:07 +02:00
compat32 tests: Don't recurse into sys/compat32 2023-05-16 02:06:34 +01:00
devrandom tests: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:01 -07:00
fifo tests: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:01 -07:00
file Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
fs fusefs: sanitize FUSE_READLINK results for embedded NULs 2023-10-07 08:22:03 -06:00
geom tests: don't run atf_* in a subshell 2023-11-27 13:15:59 -08:00
kern sockets: don't malloc/free sockaddr memory on accept(2) 2023-11-30 08:30:55 -08:00
kqueue Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
mac tests: Skip all tests that require mdconfig when /dev/mdctl missing 2023-09-02 13:16:22 -06:00
mqueue Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
net tests: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:01 -07:00
netgraph ng_socket: with getsockname() return node ID for unnamed node 2023-11-27 20:11:38 -08:00
netinet tests: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:01 -07:00
netinet6 Skip sys.netinet6.frag6.frag6_19.frag6_19 in CI 2023-11-07 04:59:24 +08:00
netipsec Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
netlink netlink: Add tests when adding an interface route 2023-11-28 16:53:00 -05:00
netmap Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
netpfil pf tests: test recursive printing of labels 2023-11-27 21:37:33 +01:00
opencrypto Revert "cdefs: Remove __func__ define" 2023-11-27 14:59:54 -07:00
pjdfstest Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
posixshm tests: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:01 -07:00
ses Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
sys bitstring: Support large bit strings. 2023-11-22 23:30:03 +01:00
vfs tests: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:01 -07:00
vm mlock tests: Add a regression test 2023-09-17 06:27:31 -04:00
vmm spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
Makefile Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
Makefile.depend Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
Makefile.inc Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00