From: Jeffrey Altman Date: Thu, 11 Sep 2008 18:00:44 +0000 (+0000) Subject: DEVEL15-windows-rx-jumbo-20080911 X-Git-Tag: openafs-devel-1_5_53~41 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=c9f9c6627f8b637fe31be35f4c23f64a41b582b6;p=packages%2Fo%2Fopenafs.git DEVEL15-windows-rx-jumbo-20080911 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) --- diff --git a/src/WINNT/afsd/afsd_init.c b/src/WINNT/afsd/afsd_init.c index 82b989eeb..376be0b46 100644 --- a/src/WINNT/afsd/afsd_init.c +++ b/src/WINNT/afsd/afsd_init.c @@ -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");