vti6: Don't report path MTU below IPV6_MIN_MTU.
authorSteffen Klassert <steffen.klassert@secunet.com>
Wed, 15 Feb 2017 10:38:58 +0000 (11:38 +0100)
committerSteffen Klassert <steffen.klassert@secunet.com>
Thu, 16 Feb 2017 06:51:42 +0000 (07:51 +0100)
commite3dc847a5f85b43ee2bfc8eae407a7e383483228
tree281e8e1a764fefde81418f552b2f3ed361181ba4
parent4c86d77743a54fb2d8a4d18a037a074c892bb3be
vti6: Don't report path MTU below IPV6_MIN_MTU.

In vti6_xmit(), the check for IPV6_MIN_MTU before we
send a ICMPV6_PKT_TOOBIG message is missing. So we might
report a PMTU below 1280. Fix this by adding the required
check.

Fixes: ccd740cbc6e ("vti6: Add pmtu handling to vti6_xmit.")
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
net/ipv6/ip6_vti.c