[ECOS] NETDEVTAB entry ???????????

Gary Thomas gthomas@redhat.com
Mon Mar 4 05:40:00 GMT 2002


On Sun, 2002-03-03 at 23:02, Kaustubh Purandare wrote:
> Hello,
> 
> I am in a process of developing my own interface (similar to 
> normal loop back interface as implemented in if_loop.c)
> 
> My problem is I want the existing loop back interface and my 
> interface enrty in the __NETDEVTAB__. I have created my own file 
> and added the interface entry using the NETDEVTAB_ENTRY macro.
> 
> I have also updated the net.cdl with my file and compiled the 
> entire net package. It compiles fine.
> 
> When I debug support.c, my device entry is not registered in the 
> __NETDEVTAB__. As a result I am not able to create an ifnet 
> structure for the same. Only standard loop_init is registered.
> 
> Is this the right procedure? Will be glad if anyone can help me.I 
> am working on synthetic linux platform.

You probably have to arrange for your file to be put into 'libextras.a'
The "if_loop" file does not [for other reasons] which is why you're
seeing the difference.

Try using a compile line like this    

  compile -library=libextras.a if_xyz.c
   
and see if it helps.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/ecos-discuss/attachments/20020304/654b717e/attachment.sig>


More information about the Ecos-discuss mailing list