Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Problem with two network drivers: (2 Items)
   
Problem with two network drivers  
Hi all,

I am writing a wireless network driver (with io-net framework: not io-pkt framework) where in i am able to register my 
driver with io-net and i am getting interface name as en0 in /dev/io-net. 

If i load one more network driver with the help of io-net, i am not able to see 2 interfaces (en0, en1) in /dev/io-net. 
Information displayed by ifconfig depicts recently loaded driver with only one interface en0(That means it is over 
writing interface created by previously loaded driver)

Where am i going wrong?

Plz help me in this regard



Thanks & Regards
-------------------------------- 
Arun L Hegde

Re: Problem with two network drivers  
On Thu, Jan 17, 2008 at 08:05:34AM -0500, Arun Hegde wrote:
> Hi all,
> 
> I am writing a wireless network driver (with io-net framework: not io-pkt framework) where in i am able to register my
 
> driver with io-net and i am getting interface name as en0 in /dev/io-net. 
> 
> If i load one more network driver with the help of io-net, i am not able to see 2 interfaces (en0, en1) in /dev/io-net
. Information displayed by ifconfig depicts recently loaded driver with only one interface en0(That means it is over 
writing interface created by previously loaded driver)
> 
> Where am i going wrong?
> 
> Plz help me in this regard

I doubt it's overwriting the existing one, rather it's
probably failing the second attempt.  Check the return code
from ion->reg() for -1 and post the errno (if it's failing).

-seanb