]> git.baikalelectronics.ru Git - kernel.git/commit
route: Use the device mtu as the default for blackhole routes
authorSteffen Klassert <steffen.klassert@secunet.com>
Wed, 23 Nov 2011 02:12:13 +0000 (02:12 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 26 Nov 2011 19:29:50 +0000 (14:29 -0500)
commitbc7b2e168180edc1c4cb9c19ff14202f9dc51c3c
treea3dbd36f83c8c3d813b1422e472af6a31ace40d2
parentb52ead04fb9bd0b268da3bc1576c0d614c47bec0
route: Use the device mtu as the default for blackhole routes

As it is, we return null as the default mtu of blackhole routes.
This may lead to a propagation of a bogus pmtu if the default_mtu
method of a blackhole route is invoked. So return dst->dev->mtu
as the default mtu instead.

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