Subject: CVS commit: src/sys/compat/linux/common
To: None <source-changes@NetBSD.org>
From: David Laight <dsl@netbsd.org>
List: source-changes
Date: 07/01/2007 18:45:36
Module Name:	src
Committed By:	dsl
Date:		Sun Jul  1 18:45:36 UTC 2007

Modified Files:
	src/sys/compat/linux/common: linux_socket.c linux_socket.h

Log Message:
Fix long-term breakage in the definition of 'control' data for linux.
cmsg->cmsg_len is 'size_t' not 'socklen_t' - so it is 8 bytes on 64bit
platforms instead of 4.  There is also never padding after the header.
Redo linux sendmsg() so that it stands a chance of getting it right.
Redo linux recvmsg() so that it process control data directly from the mbuf
  list.  Allowing it to hack the data without using the stackgap.


To generate a diff of this commit:
cvs rdiff -r1.75 -r1.76 src/sys/compat/linux/common/linux_socket.c
cvs rdiff -r1.14 -r1.15 src/sys/compat/linux/common/linux_socket.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.