VirtualBox

Changeset 15206 in vbox for trunk/src/VBox/Devices/Network


Ignore:
Timestamp:
Dec 9, 2008 10:08:04 PM (16 years ago)
Author:
vboxsync
Message:

slirp: fixed ICMP on Linux

File:
1 edited

Legend:

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

    r15204 r15206  
    2828
    2929# ifdef VBOX_WITH_SLIRP_ICMP
    30 #  define ICMP_ENGAGE_EVENT(so, fdset1, fdset2)      \
    31     DO_ENGAGE_EVENT2((so), (fdset1), (fdset2), ICMP)
     30#  define ICMP_ENGAGE_EVENT(so, fdset)               \
     31    DO_ENGAGE_EVENT1((so), (fdset), ICMP)
    3232# else /* !VBOX_WITH_SLIRP_ICMP */
    3333#  define ICMP_ENGAGE_EVENT(so, fdset1, fdset2)      \
     
    603603            }
    604604        }
    605         ICMP_ENGAGE_EVENT(&pData->icmp_socket, readfds, writefds);
     605
     606        if (pData->icmp_socket.s != -1)
     607            ICMP_ENGAGE_EVENT(&pData->icmp_socket, readfds);
    606608    }
    607609
     
    893895        sorecvfrom(pData, &pData->icmp_socket);
    894896# else
    895         if (so->s != -1 && FD_ISSET(so->s, readfds))
    896         {
     897        if (pData->icmp_socket.s != -1 && FD_ISSET(pData->icmp_socket.s, readfds))
    897898            sorecvfrom(pData, &pData->icmp_socket);
    898         }
    899899# endif
    900900#endif
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