From: Gerrit Renker Date: Wed, 10 Feb 2010 20:26:18 +0000 (+0000) Subject: dccp: support for passing MSG_TRUNC X-Git-Tag: v2.6.34-rc1~233^2~341 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=55d955902a7f78e3e7c9ddbc71a4a050d9d44810;p=pandora-kernel.git dccp: support for passing MSG_TRUNC DCCP is datagram-oriented but lacks UDP's support for MSG_TRUNC as defined in recvmsg(2)/recv(2). Hence the following 'Hello world\0' receiver len = recv(fd, buf, 10, MSG_PEEK | MSG_TRUNC); wrongly (always) returns 10, while in UDP it returns 12 as expected. This patch adds the missing MSG_TRUNC support to recvmsg(). Signed-off-by: Gerrit Renker Signed-off-by: David S. Miller --- Reading git-diff-tree failed