summaryrefslogtreecommitdiff
path: root/sys/net
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2006-12-29 20:06:32 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2006-12-29 20:06:32 +0000
commit9e3d5b35c756f214bd1646c0d8a899b82ecfce70 (patch)
treec53e777a18a22b9260604d67dcc2b7cbb3079380 /sys/net
parentacbc463f6e0434eef698ae6ae5c7804c46d61f8a (diff)
Add IFM_ETH_FMASK. From NetBSD.
Requested by brad@
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/if_media.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/net/if_media.h b/sys/net/if_media.h
index a271b06bdf3..883c61c183a 100644
--- a/sys/net/if_media.h
+++ b/sys/net/if_media.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_media.h,v 1.22 2006/12/27 12:00:17 kettenis Exp $ */
+/* $OpenBSD: if_media.h,v 1.23 2006/12/29 20:06:31 kettenis Exp $ */
/* $NetBSD: if_media.h,v 1.22 2000/02/17 21:53:16 sommerfeld Exp $ */
/*-
@@ -308,6 +308,9 @@ int ifmedia_baudrate(int);
#define IFM_MSHIFT 16 /* Mode shift */
#define IFM_GMASK 0x0ff00000 /* Global options */
+/* Ethernet flow control mask */
+#define IFM_ETH_FMASK (IFM_FLOW|IFM_ETH_RXPAUSE|IFM_ETH_TXPAUSE)
+
#define IFM_NMIN IFM_ETHER /* lowest Network type */
#define IFM_NMAX IFM_NMASK /* highest Network type */