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

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

--- Comment #39 from relvy <it@vineyard-sha.de> ---
(In reply to Kyle Evans from comment #37)

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

> What do you mean there?  If wg_socket_init() runs with port=0, that means 'random port'.  How does it then have the correct listening port?

wg_socket_init() runs three times.

First time with port 0
Second time with the port for wg0
Third time with the port for wg1  (= 51820)

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