儲存庫 vbox 的更動 15194
- 時間撮記:
- 2008-12-9 下午05:05:42 (16 年 以前)
- 位置:
- trunk/src/VBox/Devices/Network/slirp
- 檔案:
-
- 修改 3 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/Devices/Network/slirp/ip_icmp.c
r15190 r15194 92 92 pData->pfIcmpParseReplies = (long (WINAPI *)(void *, long)) 93 93 GetProcAddress(pData->hmIcmpLibrary, "IcmpParseReplies"); 94 pData->pfIcmpCloseHandle = (BOOL (WINAPI *)(HANDLE)) 95 GetProcAddress(pData->hmIcmpLibrary, "IcmpCloseHandle"); 94 96 } 95 97 if (pData->pfIcmpParseReplies == NULL) … … 104 106 pData->pfIcmpParseReplies = (long (WINAPI *)(void *, long)) 105 107 GetProcAddress(pData->hmIcmpLibrary, "IcmpParseReplies"); 108 pData->pfIcmpCloseHandle = (BOOL (WINAPI *)(HANDLE)) 109 GetProcAddress(pData->hmIcmpLibrary, "IcmpCloseHandle"); 106 110 } 107 111 if (pData->pfIcmpParseReplies == NULL) … … 111 115 return 1; 112 116 } 117 if (pData->pfIcmpCloseHandle == NULL) 118 { 119 LogRel(("NAT: Can't find IcmpCloseHandle symbol\n")); 120 FreeLibrary(pData->hmIcmpLibrary); 121 return 1; 122 } 113 123 pData->icmp_socket.sh = IcmpCreateFile(); 114 124 pData->phEvents[VBOX_ICMP_EVENT_INDEX] = CreateEvent(NULL, FALSE, FALSE, NULL); -
trunk/src/VBox/Devices/Network/slirp/slirp.c
r15095 r15194 369 369 LogRel(("NAT: cpvHashUsed=%RU32 cpvHashCollisions=%RU32 cpvHashInserts=%RU64 cpvHashDone=%RU64\n", 370 370 pData->cpvHashUsed, pData->cpvHashCollisions, pData->cpvHashInserts, pData->cpvHashDone)); 371 #endif 372 373 #ifdef VBOX_WITH_SLIRP_ICMP 374 # ifdef RT_OS_WINDOWS 375 pData->pfIcmpCloseHandle(pData->icmp_socket.sh); 376 # else 377 closesocket(pData->icmp_socket.s); 378 # endif 371 379 #endif 372 380 -
trunk/src/VBox/Devices/Network/slirp/slirp_state.h
r15112 r15194 144 144 */ 145 145 long (WINAPI * pfIcmpParseReplies)(void *, long); 146 BOOL (WINAPI * pfIcmpCloseHandle)(HANDLE); 146 147 HMODULE hmIcmpLibrary; 147 148 #endif
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器