mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-03 23:28:57 +00:00
Routes can be asymmetric. Always offer to /accept/ an MSS of up to the
capacity of the link, even if the route's MTU indicates that we cannot send that much in their direction. (This might actually make it possible to test Path MTU discovery in a useful variety of cases.)
This commit is contained in:
parent
7c2aa513e6
commit
91badc866f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=11458
@ -31,7 +31,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)tcp_input.c 8.12 (Berkeley) 5/24/95
|
||||
* $Id: tcp_input.c,v 1.28 1995/07/31 10:24:22 olah Exp $
|
||||
* $Id: tcp_input.c,v 1.29 1995/10/03 16:54:12 wollman Exp $
|
||||
*/
|
||||
|
||||
#ifndef TUBA_INCLUDE
|
||||
@ -2080,12 +2080,6 @@ tcp_mssopt(tp)
|
||||
if (rt == NULL)
|
||||
return tcp_mssdflt;
|
||||
|
||||
/*
|
||||
* if there's an mtu associated with the route, use it
|
||||
*/
|
||||
if (rt->rt_rmx.rmx_mtu)
|
||||
return rt->rt_rmx.rmx_mtu - sizeof(struct tcpiphdr);
|
||||
|
||||
return rt->rt_ifp->if_mtu - sizeof(struct tcpiphdr);
|
||||
}
|
||||
#endif /* TUBA_INCLUDE */
|
||||
|
@ -31,7 +31,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)tcp_input.c 8.12 (Berkeley) 5/24/95
|
||||
* $Id: tcp_input.c,v 1.28 1995/07/31 10:24:22 olah Exp $
|
||||
* $Id: tcp_input.c,v 1.29 1995/10/03 16:54:12 wollman Exp $
|
||||
*/
|
||||
|
||||
#ifndef TUBA_INCLUDE
|
||||
@ -2080,12 +2080,6 @@ tcp_mssopt(tp)
|
||||
if (rt == NULL)
|
||||
return tcp_mssdflt;
|
||||
|
||||
/*
|
||||
* if there's an mtu associated with the route, use it
|
||||
*/
|
||||
if (rt->rt_rmx.rmx_mtu)
|
||||
return rt->rt_rmx.rmx_mtu - sizeof(struct tcpiphdr);
|
||||
|
||||
return rt->rt_ifp->if_mtu - sizeof(struct tcpiphdr);
|
||||
}
|
||||
#endif /* TUBA_INCLUDE */
|
||||
|
Loading…
Reference in New Issue
Block a user