summaryrefslogtreecommitdiffstats
path: root/sys/net
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>1999-11-24 02:40:12 +0000
committerjulian <julian@FreeBSD.org>1999-11-24 02:40:12 +0000
commit3719edebd82a38f7cdcc32c693e10b9ced18411a (patch)
tree77dca29c5cb7c9ba736648e752aa633d892512a3 /sys/net
parentd6eae9ff980dd5cb8c77eef5beb21a67fb84ac95 (diff)
downloadFreeBSD-src-3719edebd82a38f7cdcc32c693e10b9ced18411a.zip
FreeBSD-src-3719edebd82a38f7cdcc32c693e10b9ced18411a.tar.gz
Expand the field width for subtypes. We had already overflowed it
by 2 with people just adding numbers on the end of the ethernet subtypes. We now have an additional 14 subtypes available in ethernet. Use one of them immediatly for homePNA. Reviewed by: Garrett Wollman <wollman@khavrinen.lcs.mit.edu>
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/if_media.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/net/if_media.h b/sys/net/if_media.h
index a097ce7..1708559 100644
--- a/sys/net/if_media.h
+++ b/sys/net/if_media.h
@@ -110,8 +110,7 @@ int ifmedia_ioctl __P((struct ifnet *ifp, struct ifreq *ifr,
* if_media Options word:
* Bits Use
* ---- -------
- * 0-3 Media variant
- * 4 RFU
+ * 0-4 Media variant
* 5-7 Media type
* 8-15 Type specific options
* 16-19 RFU
@@ -138,6 +137,8 @@ int ifmedia_ioctl __P((struct ifnet *ifp, struct ifreq *ifr,
#define IFM_1000_LX 15 /* 1000BaseLX Single-mode Fiber */
#define IFM_1000_CX 16 /* 1000BaseCX 150ohm STP */
#define IFM_1000_TX 17 /* 1000BaseTX 4 pair cat 5 */
+#define IFM_homePNA 18 /* HomePNA media for ethernet frames */
+/* note 31 is the max! */
/*
* Token ring
@@ -186,7 +187,7 @@ int ifmedia_ioctl __P((struct ifnet *ifp, struct ifreq *ifr,
* Masks
*/
#define IFM_NMASK 0x000000e0 /* Network type */
-#define IFM_TMASK 0x0000000f /* Media sub-type */
+#define IFM_TMASK 0x0000001f /* Media sub-type */
#define IFM_IMASK 0xf0000000 /* Instance */
#define IFM_ISHIFT 28 /* Instance shift */
#define IFM_OMASK 0x0000ff00 /* Type specific options */
@@ -250,6 +251,7 @@ struct ifmedia_description {
{ IFM_1000_LX, "1000baseLX" }, \
{ IFM_1000_CX, "1000baseCX" }, \
{ IFM_1000_TX, "1000baseTX" }, \
+ { IFM_homePNA, "homePNA" }, \
{ 0, NULL }, \
}
OpenPOWER on IntegriCloud