summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorjoerg <joerg@FreeBSD.org>1995-07-02 09:01:02 +0000
committerjoerg <joerg@FreeBSD.org>1995-07-02 09:01:02 +0000
commitb3c0c683f386f462539ed7919799865ba537a32c (patch)
tree538bd0c390f15be28c31dbf61e2c7d4b6ffeda4b /sys
parentfa02ebb9a11b90388f7d227385e1eb441440b45b (diff)
downloadFreeBSD-src-b3c0c683f386f462539ed7919799865ba537a32c.zip
FreeBSD-src-b3c0c683f386f462539ed7919799865ba537a32c.tar.gz
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.
Diffstat (limited to 'sys')
-rw-r--r--sys/net/if_sl.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/net/if_sl.c b/sys/net/if_sl.c
index db46905..346bd91 100644
--- a/sys/net/if_sl.c
+++ b/sys/net/if_sl.c
@@ -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;
OpenPOWER on IntegriCloud