hello,

        Im trying to get a client and server rpc routines running as modules
within my linux kernel. I have RH6.0 running 2.2.5 kernel version.

Im using rpc client within the kernel. My guide has been the
fs/nfs/mount_clnt.c source code and the net/sunrpc/pmap_clnt.c I'd had got
the RPC code working within the kernel using UDP xprt. But when I do a
rpc_call() using TCP, Im getting sendmsg returned 106 and insmod doesnot
exit. I donot know Whether the rpc functions that are exported for kernel
module programmer's work for TCP without any problems.

I had just replaced the protocol name IPPROTO_UDP to IPPROTO_TCP in the
working UDP based rpc client. But Im getting this error.

"RPC: sendmsg returned error 106" 

/usr/src/linux/include/asm/errno.h says End point not connected for error
106. Im not understanding why, because i have the rpc portmapper running 
which should can be connected.

Alternatively is there any code in the kernel that uses rpc over tcp? Or 
any hints regarding the setting up extra parameters for a TCP based rpc?

                Thanks in advance.
                                bye,
                                        P.Basker


-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]

Reply via email to