From afc4e5d5e0868271cd5b35149e018636bc1f7825 Mon Sep 17 00:00:00 2001 From: Michael Shalayeff Date: Wed, 31 Dec 1997 04:33:39 +0000 Subject: make the loopback interfaces ordered in the iface list, so they show up in netstat much better; this particular case showed up with more than one loopback configured in the kernel --- sys/net/if_loop.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/net/if_loop.c') diff --git a/sys/net/if_loop.c b/sys/net/if_loop.c index 0463158054c..5fed0ee1a61 100644 --- a/sys/net/if_loop.c +++ b/sys/net/if_loop.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_loop.c,v 1.7 1997/07/23 03:46:01 denny Exp $ */ +/* $OpenBSD: if_loop.c,v 1.8 1997/12/31 04:33:38 mickey Exp $ */ /* $NetBSD: if_loop.c,v 1.15 1996/05/07 02:40:33 thorpej Exp $ */ /* @@ -102,7 +102,7 @@ loopattach(n) register int i; register struct ifnet *ifp; - for (i = 0; i < NLOOP; i++) { + for (i = NLOOP; i--; ) { ifp = &loif[i]; sprintf(ifp->if_xname, "lo%d", i); ifp->if_softc = NULL; -- cgit v1.2.3