VirtualBox

Ignore:
Timestamp:
Dec 8, 2008 5:12:59 AM (16 years ago)
Author:
vboxsync
Message:

slirp:ICMP: windows support (mostly reorganization, shouldn't compile on windows)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/slirp/ip_icmp.c

    r15062 r15086  
    8080#else
    8181        pData->icmp_socket.s = IcmpCreateFile();
     82        pData->phEvents[VBOX_ICMP_EVENT_INDEX] = CreateEvent(NULL, FALSE, FALSE, NULL);
    8283#endif
    8384        insque(pData, &pData->icmp_socket, &udb);
     
    279280      memset(&ipopt, 0, sizeof(IP_OPTION_INFORMATION));
    280281      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);
    283283      if (status == 0) {
    284284            LogRel(("error(%d) occured while sending ICMP\n", GetLastError()));
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette