[Bug 290768] if_wg(4): handshake response has src and dst reverse

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 12 Dec 2025 14:41:15 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=290768

--- Comment #34 from relvy <it@vineyard-sha.de> ---
With help from opnsense I am able to build a 14.3 kernel myself.

I digged into it with if_printf() and printf().

wg_socket_init() runs with port 0 and for each wg interface with the correct
listening port.

udp_set_kernel_tunneling() registers wg_input().
But when udp_append() is called it never calls the callback function u_tun_func
that should point to wg_input().

It looks like u_tun_func pointer gets lost somewhere. Not left as a wild
pointer but reset to NULL.

-- 
You are receiving this mail because:
You are the assignee for the bug.