Changeset 15086 in vbox for trunk/src/VBox/Devices/Network/slirp/ip_icmp.c
- Timestamp:
- Dec 8, 2008 5:12:59 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/slirp/ip_icmp.c
r15062 r15086 80 80 #else 81 81 pData->icmp_socket.s = IcmpCreateFile(); 82 pData->phEvents[VBOX_ICMP_EVENT_INDEX] = CreateEvent(NULL, FALSE, FALSE, NULL); 82 83 #endif 83 84 insque(pData, &pData->icmp_socket, &udb); … … 279 280 memset(&ipopt, 0, sizeof(IP_OPTION_INFORMATION)); 280 281 ipopt.Ttl = ip->ip_ttl; 281 m->m_ext = malloc(1500); 282 status = IcmpSendEcho(pData->icmp_socket.s, VBOX_SOCKET_EVENT, &addr, icp, icmplen, m->m_ext, 1500, 0); 282 status = IcmpSendEcho2(pData->icmp_socket.s, pData->phEvents[VBOX_ICMP_EVENT_INDEX], NULL, NULL, &addr, icp, icmplen, &ipopt, pData->pvIcmpBuffer, pData->szIcmpBuffer, 0); 283 283 if (status == 0) { 284 284 LogRel(("error(%d) occured while sending ICMP\n", GetLastError()));
Note:
See TracChangeset
for help on using the changeset viewer.