summaryrefslogtreecommitdiffstats
path: root/sys/net/rtsock.c
diff options
context:
space:
mode:
authorwollman <wollman@FreeBSD.org>1996-12-11 20:38:25 +0000
committerwollman <wollman@FreeBSD.org>1996-12-11 20:38:25 +0000
commit9b9067caec777892be0e223bef825ffc72c90754 (patch)
tree12bcc692487d0eb28f370c9d9190da112b407d03 /sys/net/rtsock.c
parent46eb306a07907d347c52578792989c6c127df0d5 (diff)
downloadFreeBSD-src-9b9067caec777892be0e223bef825ffc72c90754.zip
FreeBSD-src-9b9067caec777892be0e223bef825ffc72c90754.tar.gz
Use queue macros for the list of interfaces. Next stop: ifaddrs!
Diffstat (limited to 'sys/net/rtsock.c')
-rw-r--r--sys/net/rtsock.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/rtsock.c b/sys/net/rtsock.c
index c0491e5..582ff7c 100644
--- a/sys/net/rtsock.c
+++ b/sys/net/rtsock.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)rtsock.c 8.5 (Berkeley) 11/2/94
- * $Id: rtsock.c,v 1.19 1996/05/08 04:28:54 gpalmer Exp $
+ * $Id: rtsock.c,v 1.20 1996/07/10 01:34:36 fenner Exp $
*/
#include <sys/param.h>
@@ -685,7 +685,7 @@ sysctl_iflist(af, w)
int len, error = 0;
bzero((caddr_t)&info, sizeof(info));
- for (ifp = ifnet; ifp; ifp = ifp->if_next) {
+ for (ifp = ifnet.tqh_first; ifp; ifp = ifp->if_link.tqe_next) {
if (w->w_arg && w->w_arg != ifp->if_index)
continue;
ifa = ifp->if_addrlist;
OpenPOWER on IntegriCloud