diff options
author | dg <dg@FreeBSD.org> | 1995-07-07 01:13:49 +0000 |
---|---|---|
committer | dg <dg@FreeBSD.org> | 1995-07-07 01:13:49 +0000 |
commit | f1a09f1734d10dead04def6b8db306b69e2386a7 (patch) | |
tree | 3479b32a71000f2eed8fdf47a4dc85dbe246ce91 /sys/net/if_sl.c | |
parent | f87500968fd0b9653a955a7bdf88dc7d961269ed (diff) | |
download | FreeBSD-src-f1a09f1734d10dead04def6b8db306b69e2386a7.zip FreeBSD-src-f1a09f1734d10dead04def6b8db306b69e2386a7.tar.gz |
Worked around a bug with if.c setting the interface up even when we don't
want it to.
Diffstat (limited to 'sys/net/if_sl.c')
-rw-r--r-- | sys/net/if_sl.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/sys/net/if_sl.c b/sys/net/if_sl.c index 669315c..4f5e6b7 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.24 1995/07/02 09:01:02 joerg Exp $ + * $Id: if_sl.c,v 1.25 1995/07/06 11:55:18 davidg Exp $ */ /* @@ -908,7 +908,20 @@ slioctl(ifp, cmd, data) switch (cmd) { + case SIOCSIFFLAGS: + /* + * if.c will set the interface up even if we + * don't want it to. + */ + if (sl_softc[ifp->if_unit].sc_ttyp == NULL) { + ifp->if_flags &= ~IFF_UP; + } + break; case SIOCSIFADDR: + /* + * This is "historical" - set the interface up when + * setting the address. + */ if (ifa->ifa_addr->sa_family == AF_INET) { if (sl_softc[ifp->if_unit].sc_ttyp != NULL) if_up(ifp); |