]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r328540:
authorae <ae@FreeBSD.org>
Mon, 19 Feb 2018 10:30:34 +0000 (10:30 +0000)
committerae <ae@FreeBSD.org>
Mon, 19 Feb 2018 10:30:34 +0000 (10:30 +0000)
commite48c0bc73206165ac26c7b5f3d11e358384c7bac
treeb69827966b7c4f759dda5ebad56ba383349a3a93
parentcaec82c786fba6d509e8f860d3a43718f361a1ab
MFC r328540:
  Assign IPv6 link-local address to loopback interfaces whith unit > 0.

  When an interface has IFF_LOOPBACK flag in6_ifattach() tries to assing
  IPv6 loopback address to this interface. It uses in6ifa_ifpwithaddr()
  to check, that interface doesn't already have given address and then
  uses in6_ifattach_loopback(). If in6_ifattach_loopback() fails, it just
  exits and thus skips assignment of IPv6 LLA.
  Fix this using in6ifa_ifwithaddr() function. If IPv6 loopback address is
  already assigned in the system, do not call in6_ifattach_loopback().

  PR: 138678
sys/netinet6/in6_ifattach.c