afs-servers-use-rx-setnojumbo-interface-20020228
authorMattias Amnefelt <mattiasa@e.kth.se>
Thu, 28 Feb 2002 06:10:47 +0000 (06:10 +0000)
committerDerrick Brashear <shadow@dementia.org>
Thu, 28 Feb 2002 06:10:47 +0000 (06:10 +0000)
use rx library interface instead of tweaking in each program

src/bozo/bosserver.c
src/budb/server.c
src/kauth/kaserver.c
src/ptserver/ptserver.c
src/vlserver/vlserver.c
src/volser/volmain.c

index 84d5178..11c2717 100644 (file)
@@ -910,9 +910,8 @@ char **envp;
     bozo_rxsc[2] = (struct rx_securityClass *) rxkad_NewServerSecurityObject(
                                         0, tdir, afsconf_GetKey, (char *) 0);
 
-    /* These two lines disallow jumbograms */
-    rx_maxReceiveSize = OLD_MAX_PACKET_SIZE;
-    rxi_nSendFrags = rxi_nRecvFrags = 1;
+    /* Disable jumbograms */
+    rx_SetNoJumbo();
 
     tservice = rx_NewService(/* port */ 0, /* service id */ 1, 
                  /*service name */ "bozo", /* security classes */ bozo_rxsc,
index 5744234..8be2aa1 100644 (file)
@@ -472,9 +472,8 @@ main(argc, argv)
                                                          afsconf_GetKey,
                                                          (char *) 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, BUDB_SERVICE, "BackupDatabase",
                             sca, 3, BUDB_ExecuteRequest);
index 7a62c28..74ea4ff 100644 (file)
@@ -335,9 +335,8 @@ main (argc, argv)
 
     sca[RX_SCINDEX_NULL] = rxnull_NewServerSecurityObject();
 
-    /* These two lines disallow jumbograms */
-    rx_maxReceiveSize = OLD_MAX_PACKET_SIZE;
-    rxi_nSendFrags = rxi_nRecvFrags = 1;
+    /* Disable jumbograms */
+    rx_SetNoJumbo();
 
     tservice =
        rx_NewService (0, KA_AUTHENTICATION_SERVICE, "AuthenticationService",
index 6195610..e03a856 100644 (file)
@@ -268,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) {
index 74beacd..1a5d938 100644 (file)
@@ -262,8 +262,7 @@ char        **argv;
        exit(2);
     }
     if (!rxJumbograms) {
-        rx_maxReceiveSize = OLD_MAX_PACKET_SIZE;
-       rxi_nSendFrags = rxi_nRecvFrags = 1;
+       rx_SetNoJumbo();
     }
     rx_SetRxDeadTime(50);
 
index 760c2ef..404b116 100644 (file)
@@ -337,8 +337,7 @@ usage:
     }
     if (!rxJumbograms) {
        /* Don't allow 3.4 vos clients to send jumbograms and we don't send. */
-       rx_maxReceiveSize = OLD_MAX_PACKET_SIZE;
-       rxi_nSendFrags = rxi_nRecvFrags = 1;
+        rx_SetNoJumbo();
     }
     rx_GetIFInfo();
     rx_SetRxDeadTime(420);