Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Jan 1998 09:17:00 +0900 (JST)
From:      hosokawa@ntc.keio.ac.jp (HOSOKAWA Tatsumi)
To:        mike@smith.net.au
Cc:        trost@cloud.rain.com, mobile@FreeBSD.ORG, hosokawa@ntc.keio.ac.jp
Subject:   Re: problems with SVEC NE2000 clone 
Message-ID:  <199801220017.JAA21385@afs.ntc.mita.keio.ac.jp>
In-Reply-To: Your message of "Thu, 22 Jan 1998 02:11:54 %2B1030". <199801211541.CAA00650@word.smith.net.au>

next in thread | previous in thread | raw e-mail | index | archive | help
In article <199801211541.CAA00650@word.smith.net.au>
mike@smith.net.au writes:

>> It's no surprise that the MAC would be in the CIS/attribute memory.  
>> It's not good, however, that you make a point specifying where to find 
>> the MAC in all cases rather than only those where it's actually needed.

I wanted to do it automatically, but I have not succeeded to do it.
The way I find MAC address in NE2000-compatible PC-card is,

(1) Ask the chipset to get MAC address in ordinary way.  If it returns
    the correct value, use it (by not specifying "ether" line).

(2) Look at the card, package, manual, and "ipconfig /all" of Windows
    to find actual MAC address. (or read the source code of Linux's
    pcmcia-cs ne2000 module :-), and steal the value)

(3) Read the result of "pccardc rdattr 0 0 1000" and find the MAC
    address, or read "pccardc dumpcis" to find functional ext tupple
    whose size is 6 bytes.

(4) If the address found in this output, use it.

(5) There's only one exception that all of above processes failed.  It
    has MAC address as hexadecimal ASCII string (whose length is 12)
    in "attr2" CIS tupple (SURECOM EtherPerfect EP-427 Adapter) like
    Megahertz's card does.

Is there automatic (generic) way to find MAC address in CIS tupple?
If it possible, I want to write the code to do that of course.

I have not tested the all of the cards I listed in the last mail, but
I've tested most of them in this way.  So, I believe that, at least,
most of them actually need manual setting.

--
HOSOKAWA, Tatsumi
Network Technology Center
Keio University
hosokawa@ntc.keio.ac.jp



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