Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Problem in doing ifconfig on my device: (3 Items)
   
Problem in doing ifconfig on my device  
Hi,

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. When i do ifconfig on my device i am getting 
the following error:

No such device : en0

As i know, ifconfig acts on divice via driver devctl function which is registered to io-net using net_registrant_funcs_t
 structure. So when i do ifconfig at least my devctl should get called which is not happening in my case.

Does this mean  My driver not registered properly with io-net?

Plz let me know.

Thanks & Regards
-------------------------------------------------------
 
Arun L Hegde
Global Edge Software Limited
Malleswaram
Bangalore-560 003, India
Ph:9886232054
arun.hegde@globaledgesoft.com
www.globaledgesoft.com

Re: Problem in doing ifconfig on my device  
On Wed, Jan 16, 2008 at 08:42:56AM -0500, Arun Hegde wrote:
> Hi,
> 
> 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. When i do ifconfig on my device i am getting 
the following error:
> 
> No such device : en0
> 
> As i know, ifconfig acts on divice via driver devctl function which is registered to io-net using 
net_registrant_funcs_t structure. So when i do ifconfig at least my devctl should get called which is not happening in 
my case.
> 
> Does this mean  My driver not registered properly with io-net?
> 
> Plz let me know.
> 

io-net learns of your driver via (io_net_self_t *)->reg().
The stack learns of your driver via the advertise packet you
have to send up: _NPKT_MSG flag set with payload of type
io_net_msg_dl_advert_t.  So either you're not sending up the
advertise packet or something is wrong therein.

-seanb
Re: Problem in doing ifconfig on my device  
Hi Sean,

Thaks for ur reply. 

Actually, i was missing advertise functionality. Now i added the advertise functionality and i am able to perform 
ifconfig on my device. 

Thanks & Regards
Arun Hegde