[Bug 254997] vnet jail IPv6 - IPv4 source address selection problem - 13.0-RC5

[email protected]
Newsgroups gmane.os.freebsd.devel.net
Message-ID <[email protected]/bugzilla/>
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=254997

Zhenlei Huang <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]
         Resolution|Feedback Timeout            |Works As Intended

--- Comment #4 from Zhenlei Huang <[email protected]> ---
(In reply to Bjoern A. Zeeb from comment #1)
> Could this be a problem with ping after ping and ping6 were combined into one
> binary and unrlatd to vnet jails?

The report shows clearly ping(8) choose IPv6 address for the destination but
not IPv4.

ping(8) use getaddrinfo() to resolve names to socket addresses. While
getaddrinfo() will consult net.inet6.ip6.addrctlpolicy to return proper
addresses. ip6addrctl(8) is to manipulate address selection policy for IPv6 and
IPv4 the by the design.

(In reply to Ozkan KIRIK from comment #2)
> As a workaround, when service ip6addrctl start, everything becomes working.
So indeed that is not a workaround, but the right approach.

I think it just works as intended.

-- 
You are receiving this mail because:
You are the assignee for the bug.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.