]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix hostname to be returned in an ICMPv6 NI Reply message defined
authorhrs <hrs@FreeBSD.org>
Thu, 16 May 2019 19:09:41 +0000 (19:09 +0000)
committerhrs <hrs@FreeBSD.org>
Thu, 16 May 2019 19:09:41 +0000 (19:09 +0000)
commita6704b092bf6750e8b0bf5d6695df2eeda1cac6d
tree15bee556c3461831b02c49f2e78503dc814eab2c
parentd3c56e43bebe5b404ac3dc3bbed5a7d110f03385
Fix hostname to be returned in an ICMPv6 NI Reply message defined
in RFC 4620, ICMPv6 Node Information Queries.  A vnet jail with an
IPv6 address sent a hostname of the host environment, not the
jail, even if another hostname was set to the jail.

This change can be tested by the following commands:

 # ifconfig epair0 create
 # jail -c -n j1 vnet host.hostname=vnetjail path=/ persist
 # ifconfig epair0b vnet j1
 # ifconfig epair0a inet6 -ifdisabled auto_linklocal up
 # jexec j1 ifconfig epair0b inet6 -ifdisabled auto_linklocal up
 # ping6 -w ff02::1%epair0a

Differential Revision: https://reviews.freebsd.org/D20207
MFC after: 1 week
sys/netinet6/icmp6.c