Commit 67cb96c0 authored by Hideaki Yoshifuji's avatar Hideaki Yoshifuji

[IPV6] fix a mistake in ipv6_advmss() conversion

parent 438fb92c
......@@ -602,6 +602,8 @@ static int ipv6_get_mtu(struct net_device *dev)
static inline unsigned int ipv6_advmss(unsigned int mtu)
{
mtu -= sizeof(struct ipv6hdr) + sizeof(struct tcphdr);
if (mtu < ip6_rt_min_advmss)
mtu = ip6_rt_min_advmss;
......
Markdown is supported
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