summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Wright <jason@cvs.openbsd.org>2000-01-08 05:28:39 +0000
committerJason Wright <jason@cvs.openbsd.org>2000-01-08 05:28:39 +0000
commit2c758f672616404832e1705ba0ac300503453b6f (patch)
treeba5b1575cd96951a50c17b42c666ee7c0524e280
parent1215229b1854b1c195c9883ab2f313992f940b19 (diff)
expose ifmedia_match
-rw-r--r--sys/net/if_media.c5
-rw-r--r--sys/net/if_media.h6
2 files changed, 6 insertions, 5 deletions
diff --git a/sys/net/if_media.c b/sys/net/if_media.c
index 29246f2d800..1924352d0c7 100644
--- a/sys/net/if_media.c
+++ b/sys/net/if_media.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_media.c,v 1.1 1998/09/03 06:24:20 jason Exp $ */
+/* $OpenBSD: if_media.c,v 1.2 2000/01/08 05:28:38 jason Exp $ */
/* $NetBSD: if_media.c,v 1.3 1998/08/30 07:39:39 enami Exp $ */
/*-
@@ -101,9 +101,6 @@
* Useful for debugging newly-ported drivers.
*/
-struct ifmedia_entry *ifmedia_match __P((struct ifmedia *ifm,
- int flags, int mask));
-
#ifdef IFMEDIA_DEBUG
int ifmedia_debug = 0;
static void ifmedia_printword __P((int));
diff --git a/sys/net/if_media.h b/sys/net/if_media.h
index 6f0368a57e7..803520b20ce 100644
--- a/sys/net/if_media.h
+++ b/sys/net/if_media.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_media.h,v 1.2 1999/07/21 19:55:59 jason Exp $ */
+/* $OpenBSD: if_media.h,v 1.3 2000/01/08 05:28:38 jason Exp $ */
/* $NetBSD: if_media.h,v 1.11 1998/08/12 23:23:29 thorpej Exp $ */
/*-
@@ -138,6 +138,10 @@ void ifmedia_set __P((struct ifmedia *ifm, int mword));
int ifmedia_ioctl __P((struct ifnet *ifp, struct ifreq *ifr,
struct ifmedia *ifm, u_long cmd));
+/* Locate a media entry */
+struct ifmedia_entry *ifmedia_match __P((struct ifmedia *ifm,
+ int flags, int mask));
+
#endif /*_KERNEL */
/*