summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorIan Dowse <iedowse@FreeBSD.org>2001-04-08 19:21:50 +0000
committerIan Dowse <iedowse@FreeBSD.org>2001-04-08 19:21:50 +0000
commite14f19f42a117fb570be2acf9402906e0badaea7 (patch)
treec928c8b614268507c69e85d14fc2943037431061 /lib/libc
parent92020f7a8c6d6fc049da1dcf0943b74739103c7d (diff)
Notes
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/rpc/rpc_generic.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/libc/rpc/rpc_generic.c b/lib/libc/rpc/rpc_generic.c
index 32755680d7a0..7b00d2c6d3ee 100644
--- a/lib/libc/rpc/rpc_generic.c
+++ b/lib/libc/rpc/rpc_generic.c
@@ -137,21 +137,22 @@ __rpc_get_t_size(af, proto, size)
int af, proto;
int size; /* Size requested */
{
- int maxsize;
+ int maxsize, defsize;
+ maxsize = 256 * 1024; /* XXX */
switch (proto) {
case IPPROTO_TCP:
- maxsize = 65536; /* XXX */
+ defsize = 64 * 1024; /* XXX */
break;
case IPPROTO_UDP:
- maxsize = 8192; /* XXX */
+ defsize = UDPMSGSIZE;
break;
default:
- maxsize = RPC_MAXDATASIZE;
+ defsize = RPC_MAXDATASIZE;
break;
}
if (size == 0)
- return maxsize;
+ return defsize;
/* Check whether the value is within the upper max limit */
return (size > maxsize ? (u_int)maxsize : (u_int)size);