Skip site navigation (1)Skip section navigation (2)
Date:      27 Nov 2002 02:10:10 -0800
From:      Seth Kingsley <sethk@meowfishies.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   kern/45793: Invalid media subtype aliases in if_media.h
Message-ID:  <20021127101010.27901.qmail@magnesium.net>

next in thread | raw e-mail | index | archive | help

>Number:         45793
>Category:       kern
>Synopsis:       Invalid media subtype aliases in if_media.h
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Nov 27 02:20:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Seth Kingsley
>Release:        FreeBSD 4.7-RELEASE
>Organization:
>Environment:
FreeBSD 4.7-RELEASE #0: Wed Oct  9 15:08:34 GMT 2002
root@builder.freebsdmall.com:/usr/obj/usr/src/sys/GENERIC

>Description:
	Some of the media subtype aliases in net/if_media.h appear to be
	missing or duplicated, possibly as the result of a paste-o.
	
>How-To-Repeat:
	Write a program to extract the media subtype from a gigabit
	interface, then attempt to print its abbreviated subtype
	description.

>Fix:

--- /usr/src/sys/net/if_media.h.orig	Thu Nov 28 09:52:36 2002
+++ /usr/src/sys/net/if_media.h	Thu Nov 28 09:52:49 2002
@@ -296,10 +296,10 @@
 	{ IFM_1000_FX,	"1000FX" },					\
 	{ IFM_10_STP,	"10STP" },					\
 	{ IFM_10_FL,	"10FL" },					\
-	{ IFM_1000_FX,	"1000SX" },					\
-	{ IFM_1000_FX,	"1000LX" },					\
-	{ IFM_1000_FX,	"1000CX" },					\
-	{ IFM_1000_FX,	"1000TX" },					\
+	{ IFM_1000_SX,	"1000SX" },					\
+	{ IFM_1000_LX,	"1000LX" },					\
+	{ IFM_1000_CX,	"1000CX" },					\
+	{ IFM_1000_TX,	"1000TX" },					\
 	{ 0, NULL },							\
 }

>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021127101010.27901.qmail>