sock_no_recvmsg arglist fix (2.3.9/10, 2.2.10)

Nickolai Zeldovich (kolya@cmf.nrl.navy.mil)
Sun, 11 Jul 1999 20:41:23 -0400


It appears that the latest kernel versions have an incorrect argument
list for sock_no_recvmsg, missing int total_len. Although this is not
a commonly used feature for a protocol family, it should probably still
be fixed.. I briefly looked at the 2.3.9->2.3.10 patch and it doesn't
seem to make any changes which would affect this. This also exists in
2.2.10. Here's a patch which fixes this:

--- include/net/sock.h.old Wed Jul 7 16:51:09 1999
+++ include/net/sock.h Wed Jul 7 16:51:54 1999
@@ -802,7 +802,7 @@
struct msghdr *, int,
struct scm_cookie *);
extern int sock_no_recvmsg(struct socket *,
- struct msghdr *, int,
+ struct msghdr *, int, int,
struct scm_cookie *);

/*
--- net/core/sock.c.old Sun Jul 11 20:19:58 1999
+++ net/core/sock.c Sun Jul 11 20:21:01 1999
@@ -980,8 +980,8 @@
return -EOPNOTSUPP;
}

-int sock_no_recvmsg(struct socket *sock, struct msghdr *m, int flags,
- struct scm_cookie *scm)
+int sock_no_recvmsg(struct socket *sock, struct msghdr *m, int total_len,
+ int flags, struct scm_cookie *scm)
{
return -EOPNOTSUPP;
}

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/