windows-afsd-rx-extrapackets-20080214

LICENSE MIT

Add support for specifying rx_extraPackets in the Windows client
This commit is contained in:
Jeffrey Altman 2008-02-15 03:24:52 +00:00
parent 9babb9f88f
commit 4aad2a7b6b

View File

@ -1014,6 +1014,15 @@ int afsd_InitCM(char **reasonP)
if (rx_nojumbo)
afsi_log("RX Jumbograms are disabled");
dummyLen = sizeof(rx_extraPackets);
code = RegQueryValueEx(parmKey, "RxExtraPackets", NULL, NULL,
(BYTE *) &rx_extraPackets, &dummyLen);
if (code != ERROR_SUCCESS) {
rx_extraPackets = 120;
}
if (rx_extraPackets)
afsi_log("RX extraPackets is %d", rx_extraPackets);
dummyLen = sizeof(rx_mtu);
code = RegQueryValueEx(parmKey, "RxMaxMTU", NULL, NULL,
(BYTE *) &rx_mtu, &dummyLen);