From 99b671f5a163885598ed17d7722cdb83beff422d Mon Sep 17 00:00:00 2001 From: Robert Watson Date: Wed, 17 May 2006 23:18:17 +0000 Subject: [PATCH] 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 Testing by: Susan LoVerso Reveiwed by: cel, rees Review timeout: alfred, mbr MFC after: 2 weeks --- usr.bin/rpcgen/rpc_svcout.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/usr.bin/rpcgen/rpc_svcout.c b/usr.bin/rpcgen/rpc_svcout.c index b8fcbd7c87ec..1f844677ed5a 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)