]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
DEVEL15-windows-rx-jumbo-20080911
authorJeffrey Altman <jaltman@secure-endpoints.com>
Thu, 11 Sep 2008 18:00:44 +0000 (18:00 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Thu, 11 Sep 2008 18:00:44 +0000 (18:00 +0000)
LICENSE MIT

Disable rx jumbo by default.  Permit rx jumbo to be enabled with
registry value "RxJumbo" set to 1 or "RxNoJumbo" set to 0.

RxNoJumbo has priority.

(cherry picked from commit 8e1b48ad0ab7f3790729ea0feb25256b3a9da709)

src/WINNT/afsd/afsd_init.c

index 82b989eeb487bb9965e5b87df54b8c82fe18578c..376be0b464313d06e91e794f96d2265481a9a37b 100644 (file)
@@ -1065,7 +1065,15 @@ int afsd_InitCM(char **reasonP)
     code = RegQueryValueEx(parmKey, "RxNoJumbo", NULL, NULL,
                            (BYTE *) &rx_nojumbo, &dummyLen);
     if (code != ERROR_SUCCESS) {
-        rx_nojumbo = 0;
+        DWORD jumbo;
+        dummyLen = sizeof(jumbo);
+        code = RegQueryValueEx(parmKey, "RxJumbo", NULL, NULL,
+                                (BYTE *) &jumbo, &dummyLen);
+        if (code != ERROR_SUCCESS) {
+            rx_nojumbo = 1;
+        } else {
+            rx_nojumbo = !jumbo;
+        }
     }
     if (rx_nojumbo)
         afsi_log("RX Jumbograms are disabled");