ipv6: Don't send packet to big messages to self
authorSteffen Klassert <steffen.klassert@secunet.com>
Tue, 5 Feb 2013 01:48:05 +0000 (01:48 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 6 Feb 2013 20:12:39 +0000 (15:12 -0500)
commitf4e53e292ad0626a9d4f80cbdb6adae867d8b2bc
treeb93fdec22e5f2587ab922e6319b1c905afd51c16
parentefc496eb317ce46755acc46172daa0992b184ed0
ipv6: Don't send packet to big messages to self

Calling icmpv6_send() on a local message size error leads to an
incorrect update of the path mtu in the case when IPsec is used.
So use ipv6_local_error() instead to notify the socket about the
error.

Reported-by: Jiri Bohac <jbohac@suse.cz>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/ip6_output.c