From: Tetsuo Handa Date: Wed, 26 Jul 2006 00:05:35 +0000 (-0700) Subject: [IPV4/IPV6]: Setting 0 for unused port field in RAW IP recvmsg(). X-Git-Tag: v2.6.18-rc3~30^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f59fc7f30b710d45aadf715460b3e60dbe9d3418;p=pandora-kernel.git [IPV4/IPV6]: Setting 0 for unused port field in RAW IP recvmsg(). From: Tetsuo Handa from-linux-kernel@i-love.sakura.ne.jp The recvmsg() for raw socket seems to return random u16 value from the kernel stack memory since port field is not initialized. But I'm not sure this patch is correct. Does raw socket return any information stored in port field? [ BSD defines RAW IP recvmsg to return a sin_port value of zero. This is described in Steven's TCP/IP Illustrated Volume 2 on page 1055, which is discussing the BSD rip_input() implementation. ] Acked-by: YOSHIFUJI Hideaki Signed-off-by: David S. Miller --- Reading git-diff-tree failed