On Mon, 12 Jul 2004 22:34:34 +0000 (UTC) Alexey Toptygin <alexeyt@freeshell.org> wrote: > But, in both 2.4 and 2.6 it doesn't seem to be honoring that. It is honoring the man page section that you are quoting. On return from recvmsg() UDP will set MSG_TRUNC in the msg_flags if the users's buffer is smaller than the packet length. The patch you have made reference to does something different, if MSG_TRUNC is passed _IN_ to recvmsg() by the user, this modifies what length will be returned. In any event, that patch is useful and I'm going to apply it. - : send the line "unsubscribe linux-net" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html