]> git.baikalelectronics.ru Git - kernel.git/commit
ipv4: Fix packet size calculation in __ip_append_data
authorSteffen Klassert <steffen.klassert@secunet.com>
Wed, 22 Jun 2011 01:04:37 +0000 (01:04 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 28 Jun 2011 03:34:25 +0000 (20:34 -0700)
commitc459e4215ae6cc41fecffdc6b6f126c802c97854
treeab144777bc45ac1c40c5fad94198494198adda7c
parent6e4e22c21d05abe6aec64f1374938a18c7edc5df
ipv4: Fix packet size calculation in __ip_append_data

Git commit 583e83ba (ip: take care of last fragment in ip_append_data)
added a check to see if we exceed the mtu when we add trailer_len.
However, the mtu is already subtracted by the trailer length when the
xfrm transfomation bundles are set up. So IPsec packets with mtu
size get fragmented, or if the DF bit is set the packets will not
be send even though they match the mtu perfectly fine. This patch
actually reverts commit 583e83ba.

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