Hi Jochen,
thanks for the code, but I am still stuck. I tried your code (with some help compiling provided by my UNIX SA ;-)) and I get core dumps for any of the tried options with both the old enabler code and the new enabler code. Below is /var/log/messages and my attempt with the new code. It does look like my MAC address is within the problem range.
Mar 27 12:06:33 yogimind cardmgr[367]: socket 0: NetGear FA410TXC Fast Ethernet
Mar 27 12:06:33 yogimind cardmgr[367]: executing: 'insmod /lib/modules/2.2.12-20/net/8390.o'
Mar 27 12:06:33 yogimind cardmgr[367]: executing: 'insmod /lib/modules/2.2.12-20/pcmcia/pcnet_cs.o'
Mar 27 12:06:33 yogimind kernel: eth0: NE2000 Compatible: io 0x800, irq 5, hw_addr 00:E0:98:77:A9:5D
Mar 27 12:06:33 yogimind cardmgr[367]: executing: './network start eth0'
Mar 27 12:06:35 yogimind kernel: eth0: found link beat
Mar 27 12:06:36 yogimind kernel: eth0: lost link beat
[maustin@yogimind maustin]$ gcc -Wall -O -o fa_select eth.c
eth.c: In function `writea':
eth.c:104: warning: unused variable `j'
eth.c: At top level:
eth.c:150: warning: return type of `main' is not `int'
[maustin@yogimind maustin]$ ./fa_select eth0 0
Segmentation fault (core dumped)
[maustin@yogimind maustin]$ ./fa_select eth0 1
Segmentation fault (core dumped)
[maustin@yogimind maustin]$ ./fa_select eth0 2
Segmentation fault (core dumped)
[maustin@yogimind maustin]$ ./fa_select eth0 3
Segmentation fault (core dumped)
[maustin@yogimind maustin]$
-matthew
|