summaryrefslogtreecommitdiff
path: root/sys/net/if.h
diff options
context:
space:
mode:
authorJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2003-12-10 03:30:22 +0000
committerJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2003-12-10 03:30:22 +0000
commitda6a7111f269c2494f478a5c9187cc09eed76587 (patch)
treea1f137b2d28f10b631f6d0e155595bb58c191ec5 /sys/net/if.h
parent372d7a92d0b7748521d536fd8660cb16c72f2024 (diff)
use if_indexlim (instead of if_index) and ifindex2ifnet[x] != NULL
to check if interface exists, as (1) if_index will have different meaning (2) ifindex2ifnet could become NULL when interface gets destroyed, when we introduce dynamically-created interfaces. markus ok
Diffstat (limited to 'sys/net/if.h')
-rw-r--r--sys/net/if.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if.h b/sys/net/if.h
index ba18c0ad313..8d4459b48b8 100644
--- a/sys/net/if.h
+++ b/sys/net/if.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: if.h,v 1.46 2003/12/08 09:09:03 markus Exp $ */
+/* $OpenBSD: if.h,v 1.47 2003/12/10 03:30:21 itojun Exp $ */
/* $NetBSD: if.h,v 1.23 1996/05/07 02:40:27 thorpej Exp $ */
/*
@@ -554,7 +554,7 @@ do { \
extern struct ifnet_head ifnet;
extern struct ifnet **ifindex2ifnet;
extern struct ifnet *lo0ifp;
-extern int if_index;
+extern int if_indexlim;
void ether_ifattach(struct ifnet *);
void ether_ifdetach(struct ifnet *);