[Bug 292807] IPv6 loopback ::1 cannot respond to requests sourced from another interface address

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 30 Jan 2026 11:44:56 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=292807

--- Comment #6 from Andrey V. Elsukov <ae@FreeBSD.org> ---
(In reply to Kristof Provost from comment #4)
> It's indeed a scope issue, in that in6_selectsrc() subsequently fails to 
> in6_setscope(). in6_setscope() fails because the destination address is
> loopback, but the interface we have doesn't have IFF_LOOPBACK set.

I think for echo reply the in6_selectsrc() is not used, the original
destination address will be used as source address. The scope check will fail
in the ip6_output() and it will return EHOSTUNREACH. You can check this by
using dtrace's fbt::ip6_output:return probe.

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