[PATCH] Netfilter ip_queue: Fix wrong skb->len == nlmsg_len assumption
authorDavid S. Miller <davem@davemloft.net>
Tue, 7 Mar 2006 22:59:23 +0000 (14:59 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 28 Mar 2006 07:00:21 +0000 (23:00 -0800)
commitb7bec2ba8b776bc3d122375832105c792a1eda3b
treef09b45305d9c9064fb1a799c7138c59a2ea439c7
parent2c07f6fae4b06515944c167e8aeb86217c797c03
[PATCH] Netfilter ip_queue: Fix wrong skb->len == nlmsg_len assumption

The size of the skb carrying the netlink message is not
equivalent to the length of the actual netlink message
due to padding. ip_queue matches the length of the payload
against the original packet size to determine if packet
mangling is desired, due to the above wrong assumption
arbitary packets may not be mangled depening on their
original size.

Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/ipv4/netfilter/ip_queue.c
net/ipv6/netfilter/ip6_queue.c