Wireguard not compile, - udp: typedef udp tunneling functions to functions, not pointers
https://reviews.freebsd.org/D36724 https://cgit.freebsd.org/src/commit/?id=bb77f0c2049311f0661c2493838d81a5a66c449c #> uname -K 1400072 in wireguard-freebsd/src/if_wg.c: rc = udp_set_kernel_tunneling(so4, (udp_tun_func_t)wg_input, NULL, sc); change to: rc = udp_set_kernel_tunneling(so4, wg_input, NULL, sc);
Re: FreeBSD current socket-src changed. Wireguard not compiling.
FreeBSD Current (14.0) http://ftp.freebsd.org/pub/FreeBSD/snapshots/ISO-IMAGES/14.0/ sources from iso or github - no matther Changes to src are made by commit e7d02be19d40063783d6b8f1ff2bc4c7170fd434 Author Gleb Smirnoff Wed, 17 Aug 2022 21:50:32 +0300 (11:50 -0700) ср, 31 авг. 2022 г. в 21:18, Ed Maste : > > On Mon, 29 Aug 2022 at 12:18, Jason A. Donenfeld wrote: > > On Tue, Aug 23, 2022 at 12:26:21PM +0300, Michael Pro wrote: > > > Tonight after updating kernel freebsd current I got coredump with > > > wireguard enabled kernel module. > > > ... > > Thanks. Is there a __FreeBSD_version__ change that corresponds? > > It is not an exact match, but was bumped to 1400066 shortly after and > should be a suitable value to check.
FreeBSD current socket-src changed. Wireguard not compiling.
Tonight after updating kernel freebsd current I got coredump with wireguard enabled kernel module. As is https://reviews.freebsd.org/D36232 D36232 protosw: refactor protosw and domain static declaration and load (freebsd.org) 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.