[Differential] D8904: inet: Fix routing issue by calling if_up()

sepherosa_gmail.com (Sepherosa Ziehau) phabric-noreply at FreeBSD.org
Mon Dec 26 07:53:00 UTC 2016


sepherosa_gmail.com added a comment.


  In https://reviews.freebsd.org/D8904#184430, @hrs wrote:
  
  > The cause is that the prefix route was removed by in_scrubprefix() in the PRC_IFDOWN handler and never reinstalled upon PRC_IFUP because the reinstallation  is done only for ifa passed to SIOCAIFADDR.  Just calling if_up(ifp) looks too heavy to me because it causes extra pr_ctlinput() calls of each protocol, not only inetdomain, in order to recover the routes.  What do you think about adding reinstalltion of the prefix routes in the protocol specific PRC_IFUP handler instead?
  
  
  Well, I believe it mirrors the behavior of 'ifconfig iface0 up'; w/o the if_up(), we just bring the interface up w/o notifying any domains, which probably is not intended.

REVISION DETAIL
  https://reviews.freebsd.org/D8904

EMAIL PREFERENCES
  https://reviews.freebsd.org/settings/panel/emailpreferences/

To: sepherosa_gmail.com, delphij, royger, decui_microsoft.com, honzhan_microsoft.com, howard0su_gmail.com, adrian, bz, gnn, hiren, glebius, rwatson, karels
Cc: hrs, freebsd-net-list


More information about the freebsd-net mailing list