Skip to content

Commit eb97768

Browse files
fxlbdavem330
authored andcommitted
net: update comments of "struct msghdr" with the more accurate RFC3542 ones
Signed-off-by: Francois-Xavier Le Bail <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent fa35864 commit eb97768

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

include/linux/socket.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,13 @@ struct linger {
4545
*/
4646

4747
struct msghdr {
48-
void * msg_name; /* Socket name */
49-
int msg_namelen; /* Length of name */
50-
struct iovec * msg_iov; /* Data blocks */
51-
__kernel_size_t msg_iovlen; /* Number of blocks */
52-
void * msg_control; /* Per protocol magic (eg BSD file descriptor passing) */
53-
__kernel_size_t msg_controllen; /* Length of cmsg list */
54-
unsigned int msg_flags;
48+
void *msg_name; /* ptr to socket address structure */
49+
int msg_namelen; /* size of socket address structure */
50+
struct iovec *msg_iov; /* scatter/gather array */
51+
__kernel_size_t msg_iovlen; /* # elements in msg_iov */
52+
void *msg_control; /* ancillary data */
53+
__kernel_size_t msg_controllen; /* ancillary data buffer length */
54+
unsigned int msg_flags; /* flags on received message */
5555
};
5656

5757
/* For recvmmsg/sendmmsg */

0 commit comments

Comments
 (0)