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_proto.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_proto.c')
-rw-r--r-- | sys/netinet/in_proto.c | 5 |
1 files changed, 3 insertions, 2 deletions
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, |