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

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 29 Nov 2025 18:25:38 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=290768

--- Comment #31 from relvy <it@vineyard-sha.de> ---
I have tested this patch [0] and with options INVARIANTS, INVARIANTS_SUPPORT,
KASSERT_PANIC_OPTIONAL, KDTRACE_HOOS, KDTRACE_FRAME and DDB_CTF enabled.

With this I see nothing in dmesg. Nothing after boot and nothing after I
initiated handshake from the peer.
In tcpdump I see

19:00:34.416053 IP a.b.c.d.47305 > 10.2.1.30.51820: UDP, length 148
19:00:34.416057 IP a.b.c.d.47305 > 10.2.1.30.51820: UDP, length 148
19:00:34.418392 IP a.b.c.d.47305 > 10.2.1.30.51820: UDP, length 148

pfctl -s states | grep 51820
all udp 10.2.1.30:51820 <- a.b.c.d:45350 NO_TRAFFIC:SINGLE
all udp a.b.c.d:45350 -> 10.2.1.30:51820 SINGLE:NO_TRAFFIC

No assertion is triggert.

[0] https://people.freebsd.org/~kevans/wg-keepalive.diff

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