diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 1997-12-31 04:33:39 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 1997-12-31 04:33:39 +0000 |
commit | afc4e5d5e0868271cd5b35149e018636bc1f7825 (patch) | |
tree | 00dec25849ee7fbc84e8c9690d071f761ae3036a /sys/net/if_loop.c | |
parent | ad4ebc2604bd8a98ff86863ffeee40039a44facf (diff) |
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
Diffstat (limited to 'sys/net/if_loop.c')
-rw-r--r-- | sys/net/if_loop.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |