FreeBSD current socket-src changed. Wireguard not compiling.

Michael Pro michael.adm at
Tue Aug 23 09:26:21 UTC 2022

Tonight after updating kernel freebsd current I got coredump with
wireguard enabled kernel module.

As is
 D36232 protosw: refactor protosw and domain static declaration and
load (
in wireguard-freebsd/src/support.h
error = (*so->so_proto->pr_usrreqs->pru_sockaddr)(so, nam);
replace to
error = solisten_proto_check(so);
Recompile - no more core dumps. All works now, perhaps...

Is this the right way to fix the problem? Is this enough or should we
wait for a full-scale refactoring of the code?

Thanks in advance for your reply.

More information about the WireGuard mailing list