Changeset 53292 in vbox for trunk/src/VBox/Devices/Network/slirp
- Timestamp:
- Nov 10, 2014 3:03:43 PM (10 years ago)
- Location:
- trunk/src/VBox/Devices/Network/slirp
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/slirp/ip_icmp.c
r50986 r53292 127 127 pData->pfIcmpParseReplies = (long (WINAPI *)(void *, long))RTLdrGetFunction(hLdrMod, "IcmpParseReplies"); 128 128 pData->pfIcmpCloseHandle = (BOOL (WINAPI *)(HANDLE))RTLdrGetFunction(hLdrMod, "IcmpCloseHandle"); 129 rc = RTLdrGetSymbol(hLdrMod, "GetAdaptersAddresses", (void **)&pData->pfGetAdaptersAddresses);130 if (RT_FAILURE(rc))131 LogRel(("NAT: Can't find GetAdapterAddresses in Iphlpapi.dll\n"));132 129 RTLdrClose(hLdrMod); 133 130 } -
trunk/src/VBox/Devices/Network/slirp/slirp.c
r52798 r53292 336 336 { 337 337 WSADATA Data; 338 RTLDRMOD hLdrMod; 339 338 340 WSAStartup(MAKEWORD(2, 0), &Data); 341 342 rc = RTLdrLoadSystem("Iphlpapi.dll", /* :fNoUnload */ true, &hLdrMod); 343 if (RT_SUCCESS(rc)) 344 { 345 rc = RTLdrGetSymbol(hLdrMod, "GetAdaptersAddresses", (void **)&pData->pfGetAdaptersAddresses); 346 if (RT_FAILURE(rc)) 347 LogRel(("NAT: Can't find GetAdapterAddresses in Iphlpapi.dll\n")); 348 349 RTLdrClose(hLdrMod); 350 } 339 351 } 340 352 pData->phEvents[VBOX_SOCKET_EVENT_INDEX] = CreateEvent(NULL, FALSE, FALSE, NULL);
Note:
See TracChangeset
for help on using the changeset viewer.