Skip to content
Commit 23717795 authored by Jim Paris's avatar Jim Paris Committed by David S. Miller
Browse files

[IPV6]: Update MSS even if MTU is unchanged.



This is needed because in ndisc.c, we have:

  static void ndisc_router_discovery(struct sk_buff *skb)
  {
  // ...
  	if (ndopts.nd_opts_mtu) {
  // ...
  			if (rt)
  				rt->u.dst.metrics[RTAX_MTU-1] = mtu;

  			rt6_mtu_change(skb->dev, mtu);
  // ...
  }

Since the mtu is set directly here, rt6_mtu_change_route thinks that
it is unchanged, and so it fails to update the MSS accordingly.  This
patch lets rt6_mtu_change_route still update MSS if old_mtu == new_mtu.

Signed-off-by: default avatarJim Paris <jim@jtan.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent fa4d3c62
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment