freebsd-src/sys/dev/hyperv
Gleb Smirnoff 0fac350c54 sockets: don't malloc/free sockaddr memory on getpeername/getsockname
Just like it was done for accept(2) in cfb1e92912, use same approach
for two simplier syscalls that return socket addresses.  Although,
these two syscalls aren't performance critical, this change generalizes
some code between 3 syscalls trimming code size.

Following example of accept(2), provide VNET-aware and INVARIANT-checking
wrappers sopeeraddr() and sosockaddr() around protosw methods.

Reviewed by:		tuexen
Differential Revision:	https://reviews.freebsd.org/D42694
2023-11-30 08:31:10 -08:00
..
hvsock sockets: don't malloc/free sockaddr memory on getpeername/getsockname 2023-11-30 08:31:10 -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