Skip to content

Commit

Permalink
corrected the default MSS computation.
Browse files Browse the repository at this point in the history
  • Loading branch information
jinmei committed Nov 8, 2004
1 parent 398ea3f commit 85e1fb6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions freebsd4/sys/netinet/tcp_input.c
Expand Up @@ -2852,14 +2852,14 @@ tcp_mssopt(tp)
if (rt == NULL)
return (isipv6 ? tcp_v6mssdflt : tcp_mssdflt);

return
#ifdef INET6
isipv6 ? IN6_LINKMTU(rt->rt_ifp) :
if (isipv6)
return (IN6_LINKMTU(rt->rt_ifp) - min_protoh);
else
#endif
rt->rt_ifp->if_mtu - min_protoh;
return (rt->rt_ifp->if_mtu - min_protoh);
}


/*
* When a partial ack arrives, force the retransmission of the
* next unacknowledged segment. Do not clear tp->t_dupacks.
Expand Down

0 comments on commit 85e1fb6

Please sign in to comment.