]> git.baikalelectronics.ru Git - kernel.git/commit
vti6: Fix dev->max_mtu setting
authorStefano Brivio <sbrivio@redhat.com>
Thu, 15 Mar 2018 16:17:13 +0000 (17:17 +0100)
committerSteffen Klassert <steffen.klassert@secunet.com>
Mon, 19 Mar 2018 07:45:50 +0000 (08:45 +0100)
commit654f276e04ce66fe2fc13b322cadd5d817c55458
tree62c9d02997f5bd64d8868dc4c754eef7eaa2a84e
parent9dc07ceccfb26039a4874f7e1aa256551c5d7fe2
vti6: Fix dev->max_mtu setting

We shouldn't allow a tunnel to have IP_MAX_MTU as MTU, because
another IPv6 header is going on top of our packets. Without this
patch, we might end up building packets bigger than IP_MAX_MTU.

Fixes: f79ab95c16fc ("ipv4/6: use core net MTU range checking")
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Acked-by: Sabrina Dubroca <sd@queasysnail.net>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
net/ipv6/ip6_vti.c