vbox的更動 63281 路徑 trunk/src/VBox/NetworkServices
- 時間撮記:
- 2016-8-10 下午02:52:51 (8 年 以前)
- 位置:
- trunk/src/VBox/NetworkServices/NAT
- 檔案:
-
- 修改 2 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/NetworkServices/NAT/pxping_win.c
r62692 r63281 34 34 35 35 #include <winternl.h> /* for PIO_APC_ROUTINE &c */ 36 #ifndef PIO_APC_ROUTINE_DEFINED 37 # define PIO_APC_ROUTINE_DEFINED 1 38 #endif 36 39 #include <iprt/win/iphlpapi.h> 37 40 #include <icmpapi.h> … … 59 62 * time and provide correct callback. 60 63 */ 61 void *callback4;62 void *callback6;64 PIO_APC_ROUTINE pfnCallback4; 65 PIO_APC_ROUTINE pfnCallback6; 63 66 }; 64 67 … … 119 122 120 123 if (osvi.dwMajorVersion >= 6) { 121 g_pxping. callback4 = (void *)pxping_icmp4_callback_apc;122 g_pxping. callback6 = (void *)pxping_icmp6_callback_apc;124 g_pxping.pfnCallback4 = pxping_icmp4_callback_apc; 125 g_pxping.pfnCallback6 = pxping_icmp6_callback_apc; 123 126 } 124 127 else { 125 g_pxping. callback4 = (void *)pxping_icmp4_callback_old;126 g_pxping. callback6 = (void *)pxping_icmp6_callback_old;128 g_pxping.pfnCallback4 = (PIO_APC_ROUTINE)pxping_icmp4_callback_old; 129 g_pxping.pfnCallback6 = (PIO_APC_ROUTINE)pxping_icmp6_callback_old; 127 130 } 128 131 … … 243 246 244 247 status = IcmpSendEcho2(pxping->hdl4, NULL, 245 pxping-> callback4, pong,248 pxping->pfnCallback4, pong, 246 249 dst, reqdata, (WORD)reqsize, &opts, 247 250 pong->buf, (DWORD)pong->bufsize, … … 252 255 goto out; 253 256 } 254 elseif ((status = GetLastError()) != ERROR_IO_PENDING) {257 if ((status = GetLastError()) != ERROR_IO_PENDING) { 255 258 int code; 256 259 … … 530 533 531 534 status = Icmp6SendEcho2(pxping->hdl6, NULL, 532 pxping-> callback6, pong,535 pxping->pfnCallback6, pong, 533 536 &src, &dst, reqdata, (WORD)reqsize, &opts, 534 537 pong->buf, (DWORD)pong->bufsize, … … 539 542 goto out; 540 543 } 541 elseif ((status = GetLastError()) != ERROR_IO_PENDING) {544 if ((status = GetLastError()) != ERROR_IO_PENDING) { 542 545 int code; 543 546 -
trunk/src/VBox/NetworkServices/NAT/pxtcp.c
r63277 r63281 2146 2146 } 2147 2147 2148 Assert(toeob == (u16 )toeob);2148 Assert(toeob == (u16_t)toeob); 2149 2149 error = tcp_write(pcb, &pxtcp->inbuf.buf[beg], (u16_t)toeob, maybemore); 2150 2150 if (error != ERR_OK) {
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器