]> git.baikalelectronics.ru Git - kernel.git/commit
act_nat: not all of the ICMP packets need an IP header payload
authorChangli Gao <xiaosuo@gmail.com>
Fri, 9 Jul 2010 15:33:25 +0000 (15:33 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 13 Jul 2010 03:00:19 +0000 (20:00 -0700)
commit45783df92217dadd3a5513ebaf79d5bab3c2308a
tree34c0785993a0155a3677c97813f0d63e77b48dd2
parent57a199a74e6897cf6bd7095c0bf029b8607c07bd
act_nat: not all of the ICMP packets need an IP header payload

not all of the ICMP packets need an IP header payload, so we check the length
of the skbs only when the packets should have an IP header payload.

Based upon analysis and initial patch by Rodrigo Partearroyo González.

Signed-off-by: Changli Gao <xiaosuo@gmail.com>
Acked-by: Herbert Xu <herbert@gondor.apana.org.au>
----
 net/sched/act_nat.c |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/act_nat.c