Basically what you need to do is

t_kopen()
t_kbind()
t_ksndudata()
t_krcvudata()

look at rtime() in common/rpc/sec/authdesubr.c for a usage example.

We will eventually create a kernel socket interface to make this as simple as writing a user level socket program.

Rao.

Aaron Williams wrote:
I'm not sure if this is the correct place to ask, but I am trying to figure out 
how to port an old custom in-house streams-based IPC protocol stack to run on 
top of UDP instead of raw Ethernet or ATM.  I have found a few hints here and 
there that it could be done, but no documentation or examples other than trying 
to decipher the t_kxxx/tli API calls in the kernel source code.

Basically I need to port our IPC stack to run over UDP because we need to 
switch to different hardware since Sun discontinued their ATM adapter and the 
new hardware APIs appear to be non-standard and are undocumented. While 
documentation to the raw APIs is undocumented, the new hardware does support 
running TCP/IP over ATM. By taking advantage of TCP/IP the IPC layer should be 
independent of any L2 transport as long as UDP is supported.

Specifically, how do I go about formatting the packets to go over UDP streams to emulate 
"sendto" and what format should I expect the received frames to be in?  I also 
believe I will need to bind to a specific port.

I am pretty new to streams, having spent most of my development efforts in 
VxWorks and Linux, though I have been going through the Streams Programming 
Guide (which is quite good except for all the formatting errors).
This message posted from opensolaris.org
_______________________________________________
networking-discuss mailing list
[email protected]

_______________________________________________
networking-discuss mailing list
[email protected]

Reply via email to