From 44a8636f2ae68065e9431b0b7ba916607484e1ae Mon Sep 17 00:00:00 2001 From: "Andrey A. Chernov" Date: Tue, 7 Oct 1997 09:13:06 +0000 Subject: [PATCH] Preserve old SC_STATIC value after units exchange --- sys/net/if_sl.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/net/if_sl.c b/sys/net/if_sl.c index 08cea827ce63..9de097d1b22c 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.59 1997/08/13 14:57:14 ache Exp $ + * $Id: if_sl.c,v 1.60 1997/09/21 22:01:03 gibbs Exp $ */ /* @@ -393,6 +393,8 @@ sltioctl(tp, cmd, data, flag, p) if_up(&nc->sc_if); } else if (nc->sc_if.if_flags & IFF_UP) if_down(&nc->sc_if); + sc->sc_flags &= ~SC_STATIC; + sc->sc_flags |= (nc->sc_flags & SC_STATIC); tp->t_sc = sc = nc; goto slfound; }