From 2fadbc363ca177449e2736395699ea60d5be84cd Mon Sep 17 00:00:00 2001 From: thorpej Date: Sun, 2 Jun 1996 16:22:32 +0000 Subject: [PATCH] Move a mis-placed line on slattach() so that SLIOCGUNIT works properly. From Jonathan O'Brien . --- sys/net/if_sl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/net/if_sl.c b/sys/net/if_sl.c index 4e5a125ae422..4c10a74ed193 100644 --- a/sys/net/if_sl.c +++ b/sys/net/if_sl.c @@ -1,4 +1,4 @@ -/* $NetBSD: if_sl.c,v 1.39 1996/05/07 02:40:43 thorpej Exp $ */ +/* $NetBSD: if_sl.c,v 1.40 1996/06/02 16:22:32 thorpej Exp $ */ /* * Copyright (c) 1987, 1989, 1992, 1993 @@ -201,9 +201,9 @@ slattach() register int i = 0; for (sc = sl_softc; i < NSL; sc++) { + sc->sc_unit = i; /* XXX */ sprintf(sc->sc_if.if_xname, "sl%d", i++); sc->sc_if.if_softc = sc; - sc->sc_unit = i; /* XXX */ sc->sc_if.if_mtu = SLMTU; sc->sc_if.if_flags = IFF_POINTOPOINT | SC_AUTOCOMP | IFF_MULTICAST;