afs-servers-use-rx-setnojumbo-interface-20020228
[openafs.git] / src / ptserver / ptserver.c
index bbf5785..e03a856 100644 (file)
@@ -25,6 +25,13 @@ RCSID("$Header$");
 #include <netdb.h>
 #include <netinet/in.h>
 #endif
+#ifdef HAVE_STRING_H
+#include <string.h>
+#else
+#ifdef HAVE_STRINGS_H
+#include <strings.h>
+#endif
+#endif
 #include <rx/xdr.h>
 #include <rx/rx.h>
 #include <rx/rx_globals.h>
@@ -81,7 +88,6 @@ void main (argc, argv)
 #endif
     struct afsconf_cell info;
     int kerberosKeys;                  /* set if found some keys */
-    afs_int32 i,j;
     int lwps = 3;
     char clones[MAXHOSTSPERCELL];
 
@@ -157,8 +163,6 @@ void main (argc, argv)
        }
 #endif
        else if (*arg == '-') {
-         usage:
-
                /* hack in help flag support */
 
 #ifndef AFS_NT40_ENV
@@ -264,9 +268,8 @@ void main (argc, argv)
     }
     else sc[2] = sc[0];
 
-    /* These two lines disallow jumbograms */
-    rx_maxReceiveSize = OLD_MAX_PACKET_SIZE;
-    rxi_nSendFrags = rxi_nRecvFrags = 1;
+    /* Disable jumbograms */
+    rx_SetNoJumbo();
 
     tservice = rx_NewService(0,PRSRV,"Protection Server",sc,3,PR_ExecuteRequest);
     if (tservice == (struct rx_service *)0) {