summaryrefslogtreecommitdiff
path: root/sys/net/if_var.h
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2015-11-11 10:23:24 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2015-11-11 10:23:24 +0000
commitf810b5a7c857b4f3e39ad610ee4824edc7984846 (patch)
tree33a47201dacddb08e0b167616bf85ee607f36482 /sys/net/if_var.h
parent4eb5b488d2f448bf009b5b4aa8c700ae567efb5a (diff)
Store the index of the lo0 interface instead of a pointer to its
descriptor. Allow to get rid of two if_ref() in the output paths. ok dlg@
Diffstat (limited to 'sys/net/if_var.h')
-rw-r--r--sys/net/if_var.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if_var.h b/sys/net/if_var.h
index 4c169c18dba..b2e70e50a1b 100644
--- a/sys/net/if_var.h
+++ b/sys/net/if_var.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_var.h,v 1.51 2015/10/25 11:58:11 mpi Exp $ */
+/* $OpenBSD: if_var.h,v 1.52 2015/11/11 10:23:23 mpi Exp $ */
/* $NetBSD: if.h,v 1.23 1996/05/07 02:40:27 thorpej Exp $ */
/*
@@ -402,7 +402,7 @@ int niq_enlist(struct niqueue *, struct mbuf_list *);
sysctl_mq((_n), (_l), (_op), (_olp), (_np), (_nl), &(_niq)->ni_q)
extern struct ifnet_head ifnet;
-extern struct ifnet *lo0ifp;
+extern unsigned int lo0ifidx;
void if_start(struct ifnet *);
int if_enqueue(struct ifnet *, struct mbuf *);