> >
> >       I've a query regarding module implementation for an ip stream to a
> >atmx dlpi driver.
> >
> >       Please, correct me if i'm wrong.
> >       1. An IP application opens an fd for atmx driver.
> >       2. This will open a stream from IP to the atmx dlpi driver.
> >       3. Push the ip_to_atm module using the ioctl I_PUSH command.
> >       4. The IP application will then send DLPI attach and bind request on
> >this stream.
> >
> >       Now some queries ...
> >       1. The provided ip_strm_mod.c when compiled acts as a module or a
> >       driver? This file doesn't has a init_module call. In comments, it is
> >       written that ip_strm_mod acts a network interface driver. What does
> >       this signifies?

As I understand it, ip_strm_mod acts as a STREAMS module not a linux module.  Hence 
there is no init_module().  Also
this means you will need to write a daemon stack building application to I_PUSH the 
module on your driver plus link it through
linux mechanisms to IP.  

I am marginally more familiar with ip_to_dlpi.c, which acts as a STREAMS driver.  You 
still need to write a daemon stack building
application that will open ip_to_dlpi and /dev/atmx, then I_LINK your atmx driver 
under ip_to_dlpi.  The advantage here is that
ip_to_dlpi, as a driver, will have a node in  the filesystem that IP can use directly 
and you don't need to mess with the OS TCP/IP stack or stack-building.


> >
> >       2. Does this configuration needs the provided ip_strm_mod module to
> >       be placed above the new ip_to_atm module or ip_to_atm can be a
> >       customized version of ip_strm_mod and can alone handle the
> >       functioning of both?

I would suggest that ip_to_atm should be a customized version of ip_strm_mod if  
neither ip_strm_mod nor ip_to_dlpi are sufficient for your needs.  Also if you see 
your customizations as generically applicable, and they don't break the existing code, 
consider feeding the changes back into LiS.


> >
> >       3. Is there any way that i can autopush the module(s) on the stream?
> >       On LiS installation, i wasn't able to find AUTOPUSH utlity.
> >

To my knowledge there is no AUTOPUSH facility in LiS (and many other STREAMS 
implementations). Autopush would make ip_strm_mod the preferred solution.

Ragnar


_______________________________________________
Linux-streams mailing list
[EMAIL PROTECTED]
http://gsyc.escet.urjc.es/mailman/listinfo/linux-streams

Reply via email to