Use the exact sockaddr size in getnameinfo (tcp_subr.c)
On NetBSD, the sockaddr size passed to getnameinfo must match the family. Currently, this causes a problem in qemu reported here:
QEMU crashes when receiving network connection on NetBSD https://gitlab.com/qemu-project/qemu/-/issues/605
The proposed solution is to check the family first and then use the appropriate size.patch-qemu-slirp-src-tcp_subr.txt
I have tested the patch briefly on NetBSD+qemu, but my computer is quite old so I have not tested any further.