]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix rt_ifa selection during loopback route insertion process.
authormelifaro <melifaro@FreeBSD.org>
Sun, 19 May 2019 21:49:56 +0000 (21:49 +0000)
committermelifaro <melifaro@FreeBSD.org>
Sun, 19 May 2019 21:49:56 +0000 (21:49 +0000)
commit89c77141ddf4e7304fad1ada1937dff777ee0f06
treea5a2b93e48beb4e23f13cee68010e5247cc550b9
parent633b0421a3f3d45470421b9cb063285acbccb5fb
Fix rt_ifa selection during loopback route insertion process.
  Currently such routes are added with a link-level IFA, which is
  plain wrong. Only after the insertion they get fixed by the special
  link_rtrequest() ifa handler. This behaviour complicates routing code
  and makes ifa selection more complex.
Streamline this process by explicitly moving link_rtrequest() logic
  to the pre-insertion rt_getifa_fib() ifa selector. Avoid calling all
  this logic in the loopback route case by explicitly specifying
  proper rt_ifa inside the ifa_maintain_loopback_route().ยง

MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D20076
sys/net/if.c
sys/net/route.c