]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
act_nat: fix on the TX path
authorChangli Gao <xiaosuo@gmail.com>
Tue, 3 Aug 2010 17:39:18 +0000 (17:39 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 5 Aug 2010 04:53:14 +0000 (21:53 -0700)
commit36d12690a2e9bcacae5a2a7e0fb6345a3caad625
treef3e451b268d498af9ec171f6b454538091010f71
parentc33788b45f754bd5dd8adc520e37fa38ac1849c7
act_nat: fix on the TX path

On the TX path, skb->data points to the ethernet header, not the network
header. So when validating the packet length for accessing we should
take the ethernet header into account.

Signed-off-by: Changli Gao <xiaosuo@gmail.com>
Acked-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/act_nat.c