From: Eric Leblond Date: Mon, 10 Mar 2008 23:41:43 +0000 (-0700) Subject: [NETFILTER]: nfnetlink_queue: fix computation of allocated size for netlink skb. X-Git-Tag: v2.6.25-rc6~31^2~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cabaa9bfb01eb4cee97ffb8a18405f4c5175d3d9;p=pandora-kernel.git [NETFILTER]: nfnetlink_queue: fix computation of allocated size for netlink skb. Size of the netlink skb was wrongly computed because the formula was using NLMSG_ALIGN instead of NLMSG_SPACE. NLMSG_ALIGN does not add the room for netlink header as NLMSG_SPACE does. This was causing a failure of message building in some cases. On my test system, all messages for packets in range [8*k+41, 8*k+48] where k is an integer were invalid and the corresponding packets were dropped. Signed-off-by: Eric Leblond Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller --- Reading git-diff-tree failed