1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-14 10:09:48 +00:00

Revision 1.21 of if_sl.c broke the traditional behaviour that

assigning an address to an interface automatically marks this
interface IFF_UP.  The fix corrects this (and closes PR sys/577).
This is consistent with the way ethernet interfaces are being handled.
This commit is contained in:
Joerg Wunsch 1995-07-02 09:01:02 +00:00
parent 37712f2a7b
commit 1394aff0cd
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=9385

View File

@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)if_sl.c 8.6 (Berkeley) 2/1/94
* $Id: if_sl.c,v 1.22 1995/06/21 09:11:22 davidg Exp $
* $Id: if_sl.c,v 1.23 1995/06/21 10:13:23 davidg Exp $
*/
/*
@ -909,6 +909,9 @@ slioctl(ifp, cmd, data)
switch (cmd) {
case SIOCSIFADDR:
if (ifa->ifa_addr->sa_family == AF_INET)
ifp->if_flags |= IFF_UP;
/* FALLTHROUGH */
case SIOCSIFDSTADDR:
if (ifa->ifa_addr->sa_family != AF_INET)
error = EAFNOSUPPORT;