diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/net.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/net.h b/include/linux/net.h index b292a0435571..4bcee94cef93 100644 --- a/include/linux/net.h +++ b/include/linux/net.h | |||
| @@ -164,6 +164,14 @@ struct proto_ops { | |||
| 164 | #endif | 164 | #endif |
| 165 | int (*sendmsg) (struct kiocb *iocb, struct socket *sock, | 165 | int (*sendmsg) (struct kiocb *iocb, struct socket *sock, |
| 166 | struct msghdr *m, size_t total_len); | 166 | struct msghdr *m, size_t total_len); |
| 167 | /* Notes for implementing recvmsg: | ||
| 168 | * =============================== | ||
| 169 | * msg->msg_namelen should get updated by the recvmsg handlers | ||
| 170 | * iff msg_name != NULL. It is by default 0 to prevent | ||
| 171 | * returning uninitialized memory to user space. The recvfrom | ||
| 172 | * handlers can assume that msg.msg_name is either NULL or has | ||
| 173 | * a minimum size of sizeof(struct sockaddr_storage). | ||
| 174 | */ | ||
| 167 | int (*recvmsg) (struct kiocb *iocb, struct socket *sock, | 175 | int (*recvmsg) (struct kiocb *iocb, struct socket *sock, |
| 168 | struct msghdr *m, size_t total_len, | 176 | struct msghdr *m, size_t total_len, |
| 169 | int flags); | 177 | int flags); |
