Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Mar 1999 17:18:30 GMT
From:      scott@dcs.qmw.ac.uk
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   bin/10546: Intel Pro/100 PC card has CIS string > CIS_MAXSTR
Message-ID:  <199903111718.RAA00740@scotts-laptop.dcs.qmw.ac.uk>

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

>Number:         10546
>Category:       bin
>Synopsis:       Intel Pro/100 PC card has CIS string > CIS_MAXSTR
>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:   Thu Mar 11 09:20:01 PST 1999
>Closed-Date:
>Last-Modified:
>Originator:     Scott Mitchell
>Release:        FreeBSD 3.0-RELEASE i386
>Organization:
Queen Mary & Westfield College
>Environment:

Any machine with PCCARD support enabled.

>Description:

CIS_MAXSTR is defined as 30 in /usr/src/usr.sbin/pccard/pccardd/readcis.h.
Certain PCMCIA cards (eg. The Intel EtherExpress Pro Mobile 10/100) contain
strings in their CIS tuples that are longer than 30 characters.  In the case
of the Intel there's a 48 byte string, other cards may have longer strings.

>How-To-Repeat:

Run pccardd, insert a PC card with a CIS string longer than 30 characters.

>Fix:

Bump the value of CIS_MAXSTR upwards.  The maximum possible amount of data in
a CIS tuple is 254 bytes, so this should be enough to cover anything...
	
The following patch does the necessary:

*** readcis.h.orig	Tue Sep 23 20:51:32 1997
--- readcis.h	Thu Mar 11 16:52:49 1999
***************
*** 26,32 ****
   * $Id: readcis.h,v 1.9 1997/09/23 19:51:32 nate Exp $
   */
  
! #define	CIS_MAXSTR	30
  struct tuple {
  	struct tuple *next;
  	unsigned char code;
--- 26,32 ----
   * $Id: readcis.h,v 1.9 1997/09/23 19:51:32 nate Exp $
   */
  
! #define	CIS_MAXSTR	254
  struct tuple {
  	struct tuple *next;
  	unsigned char code;



>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?199903111718.RAA00740>