All,

Our product requires a STREAMS module to be pushed on all open TCP/UDP streams. 
 What is the recommended way to deliver a package that does this on Solaris 10?

Currently, we attempt to do this using SMF.  We have a "service" that simply 
calls a program that "autopushes" the module on the TCP and UDP devices.  I'm 
not sure why the original developers did not use autopush rather than writing a 
home grown program to do the same thing, but there does seem to be a problem 
with using autopush (more on that later).  The postinstall script in our 
package calls svccfg import and svcadm enable to import and enable the service. 
 This mechanism seems to work except for running in a Jumpstart environment.  
There, the svcadm and svccfg commands are not valid.

If all we need to do is autopush a STREAMS module, using SMF seems like 
overkill.  We could just add a line to /etc/inittab to do the autopush, similar 
to what is already being done there with iu.ap.  It has been pointed out to me 
that we could also just modify iu.ap itself, although, I was not aware that Sun 
would recommend that 3rd-party installers modify that file.  Is this a better 
way to go than creating a "service" that does the autopush?  Is modifying iu.ap 
supported?

I have experimented with adding a line into /etc/inittab to call autopush for 
our module.  It gives weird behavior though.  Even though we autopush on TCP 
and UDP, if I do strconf on /dev/udp and /dev/udp6 after the autopush, our 
module does not show up.  It does for /dev/tcp and /dev/tcp6.  When calling our 
homegrown program installed, it works for all four devices consistently.  I 
have included our program if anyone wants to look at it.  It is only 200 lines.

Thanks,
Tony
 
 
This message posted from opensolaris.org
_______________________________________________
networking-discuss mailing list
[email protected]

Reply via email to