xfrm6: Don't call icmpv6_send on local error
authorSteffen Klassert <steffen.klassert@secunet.com>
Tue, 11 Oct 2011 01:44:30 +0000 (01:44 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 19 Oct 2011 03:53:10 +0000 (23:53 -0400)
commitdd767856a36e00b631d65ebc4bb81b19915532d6
tree02fda49186e29ffeb47b5683236d6fcbfbc379b5
parent299b0767642a65f0c5446ab6d35e6df0daf43d33
xfrm6: Don't call icmpv6_send on local error

Calling icmpv6_send() on a local message size error leads to
an incorrect update of the path mtu. So use xfrm6_local_rxpmtu()
to notify about the pmtu if the IPV6_DONTFRAG socket option is
set on an udp or raw socket, according RFC 3542 and use
ipv6_local_error() otherwise.

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