From 731964886006c63acb149497e458d29a68368332 Mon Sep 17 00:00:00 2001 From: wollman Date: Fri, 14 Feb 1997 18:15:53 +0000 Subject: 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. --- sys/netinet/in_proto.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sys/netinet/in_proto.c') diff --git a/sys/netinet/in_proto.c b/sys/netinet/in_proto.c index 9a80959..93d9784 100644 --- a/sys/netinet/in_proto.c +++ b/sys/netinet/in_proto.c @@ -105,8 +105,9 @@ struct protosw inetsw[] = { }, { SOCK_DGRAM, &inetdomain, IPPROTO_UDP, PR_ATOMIC|PR_ADDR, udp_input, 0, udp_ctlinput, ip_ctloutput, - udp_usrreq, - udp_init + 0, + udp_init, 0, 0, 0, + &udp_usrreqs }, { SOCK_STREAM, &inetdomain, IPPROTO_TCP, PR_CONNREQUIRED|PR_IMPLOPCL|PR_WANTRCVD, -- cgit v1.1