]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix gateway setup for the interface routes.
authorAlexander V. Chernikov <melifaro@FreeBSD.org>
Wed, 22 May 2019 21:20:15 +0000 (21:20 +0000)
committerAlexander V. Chernikov <melifaro@FreeBSD.org>
Wed, 22 May 2019 21:20:15 +0000 (21:20 +0000)
commit563ab4e4000805b1f3eb7054f52b49e924ac0c67
tree2063ed6847324963235989f6256804c38b0747c2
parenta30555576cd9497620112304600f66643318904c
Fix gateway setup for the interface routes.

Currently rinit1() and its IPv6 counterpart
  nd6_prefix_onlink_rtrequest() uses dummy null_sdl gateway address
  during route insertion and change it afterwards. This behaviour
  brings complications to the routing stack and the users of its
  upcoming notification system.

This change fixes both rinit1() and nd6_prefix_onlink_rtrequest()
  by filling in proper gateway in the beginning. It does not change any
  of the userland notifications as in both cases, they happen after
  the insertion and fixup process (rt_newaddrmsg_fib() and nd6_rtmsg()).

MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D20328
sys/net/route.c
sys/netinet6/nd6_rtr.c