From: Balachandar on 14 Jun 2010 21:55 Hello, I am trying to implement my own transport layer protocol in Linux for an experiment. I am going to use socket interface and add my protocol using sock_register. For the proto_ops i can see that the parameters for the sendmsg and recvmsg are (struct kiocb *iocb, struct socket *sock, struct msghdr *msg, size_t len, int flags). But there are three types of user api's send, sendto, sendmsg. Of these three only sendmsg contains a parameter for msghdr. I find that the other two api's are incompatible with the parameters supplied by the kernel to my kernel- space sendmsg function. So what happens when we use send and sendto user-space api's? Hope i am clear.. Thanks, Bala
|
Pages: 1 Prev: unreachable 127.0.0.0/8 scope host Next: Defining the interfaces to be used for routing |