> I once wrote a module that did just this... a streams TPI module with an > autopush. In my case, I pushed it below TCP, just above IP.
That's not really TPI, but rather a mutant TPI-like messaging interface. (USL had a thing called NPI for that layer. Solaris has never supported NPI and thus never supported interposing between TCP and IP.) > I'm not sure if a TPI module can be used above TCP to intercept socket() > calls, but it might be worth trying. It should work fine for protocols using STREAMS. However, it will turn off the "direct sockets" support in sockfs which will impact performance to some degree. (Search for the symbol SS_DIRECT for more details.) For transport protocols that aren't implemented as STREAMS modules (e.g., SCTP), the TPI module approach won't work. -- meem _______________________________________________ opensolaris-code mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/opensolaris-code
