summaryrefslogtreecommitdiffstats
path: root/usr.bin/rpcgen/rpc_svcout.c
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2006-05-17 23:18:17 +0000
committerrwatson <rwatson@FreeBSD.org>2006-05-17 23:18:17 +0000
commitfd6d54b37b46175241dbdf131207010b95698527 (patch)
tree001f859f1f132b72bdd1d7a3dbe5d958aa043a81 /usr.bin/rpcgen/rpc_svcout.c
parent70daffddffbf3afb1d9d76e97edd50f02a48d9f1 (diff)
downloadFreeBSD-src-fd6d54b37b46175241dbdf131207010b95698527.zip
FreeBSD-src-fd6d54b37b46175241dbdf131207010b95698527.tar.gz
In change 1.15, an arbitrary setting of the max RPC record size to
RPC_MAXDATASIZE was introduced. This is believed to have been debugging code committed accidentally, although I've been unable to reach the committer to confirm this. The effect was to limit the size of RPCs on TCP and UDP to 9k, well below the default protocol limits in the libc rpc code. This change simply removes these introduced limits, falling back on the libc definitions. PR: 88856 Reported by: Keith Bostic <bostic at sleepycat dot com> Testing by: Susan LoVerso <sue at loverso dot southborough dot ma dot us> Reveiwed by: cel, rees Review timeout: alfred, mbr MFC after: 2 weeks
Diffstat (limited to 'usr.bin/rpcgen/rpc_svcout.c')
-rw-r--r--usr.bin/rpcgen/rpc_svcout.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/usr.bin/rpcgen/rpc_svcout.c b/usr.bin/rpcgen/rpc_svcout.c
index b8fcbd7..1f84467 100644
--- a/usr.bin/rpcgen/rpc_svcout.c
+++ b/usr.bin/rpcgen/rpc_svcout.c
@@ -134,11 +134,6 @@ serviced */\n");
f_print(fout, "\nint\n");
f_print(fout, "main()\n");
f_print(fout, "{\n");
- if (tirpcflag) {
- if (!inetdflag)
- f_print(fout, "\t");
- f_print(fout, "\tint maxrec = RPC_MAXDATASIZE;\n");
- }
if (inetdflag) {
write_inetmost(infile);
/* Includes call to write_rpc_svc_fg() */
@@ -258,10 +253,6 @@ write_nettype_register(const char *transp)
if (def->def_kind != DEF_PROGRAM) {
continue;
}
- if (tirpcflag) {
- f_print(fout,
- "\trpc_control(RPC_SVC_CONNMAXREC_SET, &maxrec);\n");
- }
for (vp = def->def.pr.versions; vp != NULL; vp = vp->next) {
f_print(fout, "\tif (!svc_create(");
pvname(def->def_name, vp->vers_num);
@@ -982,8 +973,6 @@ write_inetd_register(const char *transp)
"\tif ((_rpcfdtype == 0) || (_rpcfdtype == %s)) {\n",
isudp ? "SOCK_DGRAM" : "SOCK_STREAM");
}
- if (tirpcflag)
- f_print(fout, "\t\trpc_control(RPC_SVC_CONNMAXREC_SET, &maxrec);\n");
f_print(fout, "%s\t%s = svc%s_create(%s",
sp, TRANSP, transp, inetdflag? "sock": "RPC_ANYSOCK");
if (!isudp)
OpenPOWER on IntegriCloud