Re: [PATCH] wireguard: socket: fix sticky source address on p2p
From: David Woodhouse
Date: Tue Nov 10 2026 - 12:07:17 EST
On Tue, 2026-11-10 at 17:12 +0100, Jason A. Donenfeld wrote:
>
> Hmm... How did you choose __ip_dev_find() over, say,
> inet_lookup_ifaddr_rcu(), which is structurally more similar to
> ipv6_chk_addr()?
__ip_dev_find() is what's exported to modules. It internally takes the
RCU lock and calls inet_lookup_ifaddr_rcu(). It also falls back to a
RT_TABLE_LOCAL lookup, which I think is the right thing here too.
Attachment:
smime.p7s
Description: S/MIME cryptographic signature