]> git.baikalelectronics.ru Git - kernel.git/commit
ipv4: Don't create nh exeption when the device mtu is smaller than the reported pmtu
authorSteffen Klassert <steffen.klassert@secunet.com>
Sun, 7 Oct 2012 22:48:18 +0000 (22:48 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Oct 2012 18:46:35 +0000 (14:46 -0400)
commit61e0e8ba07f67e35401d0a4aaaaad5fba486cb22
tree61974ee8b7c5b0428401e29836ce2cc1bbc9484e
parenta2d95aa18155ed612352a3c086fa603f7e82e779
ipv4: Don't create nh exeption when the device mtu is smaller than the reported pmtu

When a local tool like tracepath tries to send packets bigger than
the device mtu, we create a nh exeption and set the pmtu to device
mtu. The device mtu does not expire, so check if the device mtu is
smaller than the reported pmtu and don't crerate a nh exeption in
that case.

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