Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - How to specify the instance number to the networking stack?: (4 Items)
   
How to specify the instance number to the networking stack?  
Dear forum,

Let's say I've written a new driver and, for reasons unknown, I want to attach it to the stack with an index of my 
choosing (let's say foo2). 

When I mount a driver, it always appears as foo0 if there's one driver, foo1 if there are two, etc. How can I force the 
index? I've tried setting the lan parameter of the nic_config structure but it didn't help.

I guess that's what the 'endpoint' parameter does in io_net; what's the io-pkt's way?

Thanks!
RE: How to specify the instance number to the networking stack?  
# io-pkt -d foo unit=1

-----Original Message-----
From: Max Timchenko [mailto:community-noreply@qnx.com]
Sent: Mon 1/31/2011 4:58 AM
To: drivers-networking
Subject: How to specify the instance number to the networking stack?
 
Dear forum,

Let's say I've written a new driver and, for reasons unknown, I want to attach it to the stack with an index of my 
choosing (let's say foo2). 

When I mount a driver, it always appears as foo0 if there's one driver, foo1 if there are two, etc. How can I force the 
index? I've tried setting the lan parameter of the nic_config structure but it didn't help.

I guess that's what the 'endpoint' parameter does in io_net; what's the io-pkt's way?

Thanks!



_______________________________________________

Networking Drivers
http://community.qnx.com/sf/go/post82765


Attachment: Text winmail.dat 2.94 KB
Re: RE: How to specify the instance number to the networking stack?  
> 
> # io-pkt -d foo unit=1
> 

Thanks Sean,

Is there a way to do it as an argument to 'mount', or from the driver's code?

-- Max

RE: RE: How to specify the instance number to the networking stack?  
mount -T io-pkt -o unit=1 /lib/dll/devnp-foo.so

-----Original Message-----
From: Max Timchenko [mailto:community-noreply@qnx.com]
Sent: Mon 1/31/2011 9:56 AM
To: drivers-networking
Subject: Re: RE: How to specify the instance number to the networking stack?
 
> 
> # io-pkt -d foo unit=1
> 

Thanks Sean,

Is there a way to do it as an argument to 'mount', or from the driver's code?

-- Max





_______________________________________________

Networking Drivers
http://community.qnx.com/sf/go/post82775


Attachment: Text winmail.dat 2.73 KB