]> git.baikalelectronics.ru Git - kernel.git/commit
[NETFILTER] ip_queue: Fix wrong skb->len == nlmsg_len assumption
authorThomas Graf <tgraf@suug.ch>
Tue, 7 Mar 2006 22:56:12 +0000 (14:56 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 7 Mar 2006 22:56:12 +0000 (14:56 -0800)
commitec1cc8c31229af64945e9eb320cce9e61dfc7a47
treee5ecac1ef9c88cdfabea26de440158b526afbe8a
parentb15a00bde39d9355929a704b273f3a47567f0e0d
[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>
net/ipv4/netfilter/ip_queue.c
net/ipv6/netfilter/ip6_queue.c