VirtualBox

Changeset 53866 in vbox


Ignore:
Timestamp:
Jan 20, 2015 1:59:07 AM (10 years ago)
Author:
vboxsync
Message:

NAT: don't check WSANETWORKEVENTS::iErrorCode in Windows DO_CHECK_FD_SET.
Old code effectively hid all socket errors in slirp_select_poll() -
cf. public ticket #11696.

This is a minimal change to bring Windows behaviour in line with Unix.
Inbound RST is still not propagated to the guest correctly, as RST.

File:
1 edited

Legend:

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

    r53624 r53866  
    201201
    202202# define DO_CHECK_FD_SET(so, events, fdset)  \
    203     (((events).lNetworkEvents & fdset ## _win) && ((events).iErrorCode[fdset ## _win_bit] == 0))
     203    ((events).lNetworkEvents & fdset ## _win)
    204204
    205205# define DO_WIN_CHECK_FD_SET(so, events, fdset) DO_CHECK_FD_SET((so), (events), fdset)
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