OSDN Git Service

ipv4: ipv4_default_advmss() should use route mtu
authorEric Dumazet <edumazet@google.com>
Thu, 19 Oct 2017 00:02:03 +0000 (17:02 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 21 Oct 2017 00:55:05 +0000 (01:55 +0100)
commit164a5e7ad531e181334a3d3f03d0d5ad20d6faea
tree5d78b377974176cc696dafd4c76e5defec13e0a6
parent520d0d75dd9f63219084adfd8d31913c71bd8311
ipv4: ipv4_default_advmss() should use route mtu

ipv4_default_advmss() incorrectly uses the device MTU instead
of the route provided one. IPv6 has the proper behavior,
lets harmonize the two protocols.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/route.c