diff options
author | wollman <wollman@FreeBSD.org> | 1997-02-14 18:15:53 +0000 |
---|---|---|
committer | wollman <wollman@FreeBSD.org> | 1997-02-14 18:15:53 +0000 |
commit | 731964886006c63acb149497e458d29a68368332 (patch) | |
tree | 41d6953fc4c7a2929081f52e766fbc604285351b /sys/netinet/in_rmx.c | |
parent | 936314fb4096f9ce1eb390ac682800ecdb6cdc5a (diff) | |
download | FreeBSD-src-731964886006c63acb149497e458d29a68368332.zip FreeBSD-src-731964886006c63acb149497e458d29a68368332.tar.gz |
Fix the mechanism for choosing wehether to save the slow-start threshold
in the route. This allows us to remove the unconditional setting of the
pipesize in the route, which should mean that SO_SNDBUF and SO_RCVBUF
should actually work again. While we're at it:
- Convert udp_usrreq from `mondo switch statement from Hell' to new-style.
- Delete old TCP mondo switch statement from Hell, which had previously
been diked out.
Diffstat (limited to 'sys/netinet/in_rmx.c')
-rw-r--r-- | sys/netinet/in_rmx.c | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/sys/netinet/in_rmx.c b/sys/netinet/in_rmx.c index a302c1a..5c1c24d 100644 --- a/sys/netinet/in_rmx.c +++ b/sys/netinet/in_rmx.c @@ -26,7 +26,7 @@ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id$ + * $Id: in_rmx.c,v 1.28 1997/02/13 19:46:41 wollman Exp $ */ /* @@ -119,23 +119,6 @@ in_addroute(void *v_arg, void *n_arg, struct radix_node_head *head, } } - /* - * We also specify a send and receive pipe size for every - * route added, to help TCP a bit. TCP doesn't actually - * want a true pipe size, which would be prohibitive in memory - * costs and is hard to compute anyway; it simply uses these - * values to size its buffers. So, we fill them in with the - * same values that TCP would have used anyway, and allow the - * installing program or the link layer to override these values - * as it sees fit. This will hopefully allow TCP more - * opportunities to save its ssthresh value. - */ - if (!rt->rt_rmx.rmx_sendpipe && !(rt->rt_rmx.rmx_locks & RTV_SPIPE)) - rt->rt_rmx.rmx_sendpipe = tcp_sendspace; - - if (!rt->rt_rmx.rmx_recvpipe && !(rt->rt_rmx.rmx_locks & RTV_RPIPE)) - rt->rt_rmx.rmx_recvpipe = tcp_recvspace; - if (!rt->rt_rmx.rmx_mtu && !(rt->rt_rmx.rmx_locks & RTV_MTU) && rt->rt_ifp) rt->rt_rmx.rmx_mtu = rt->rt_ifp->if_mtu; |