glebius added a comment.

  I don't think that the patch is in the right direction. The problem comes 
from historical behavior that assigning an address is implicit UP. For a modern 
networking equipment it is a normal administrative situation that sysadmin 
wants to assign an address or an alias and at the same time don't implicitly 
bring the interface up. The problem get worse when you add CARP into the mix.
  
  For the sake of historical behavior preservation, I would prefer to see hacks 
to ifconfig(8) rather than to in_control(). Ifconfig could issue SIOCSIFFLAGS 
after SIOCAIFADDR for the sake of compatibility.
  
  In the projects/ifnet branch this all is somewhat resolved. The only place 
that writes IFF_UP is if_up() and drivers aren't allowed to do that. The 
if_init method disappears and logic of initing and assigning address is split. 
You may look into that branch.

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, rwatson, 
karels, glebius
Cc: hrs, freebsd-net-list
_______________________________________________
freebsd-net@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"

Reply via email to