]> git.baikalelectronics.ru Git - kernel.git/commit
ipv4: Don't use ufo handling on later transformed packets
authorSteffen Klassert <steffen.klassert@secunet.com>
Wed, 29 Jun 2011 23:19:32 +0000 (23:19 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 2 Jul 2011 00:33:19 +0000 (17:33 -0700)
commit8d8a236f68d81061d02266df6d1e8a76d1a833bb
tree2eda84544f43e8ec2e6051af36b9cc90a4171c9b
parent16dbe7c6f94bd93ff9ab997b9a3fd5a44ee7cf8b
ipv4: Don't use ufo handling on later transformed packets

We might call ip_ufo_append_data() for packets that will be IPsec
transformed later. This function should be used just for real
udp packets. So we check for rt->dst.header_len which is only
nonzero on IPsec handling and call ip_ufo_append_data() just
if rt->dst.header_len is zero.

Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ip_output.c