VirtualBox

Ignore:
Timestamp:
Jul 21, 2014 4:31:36 PM (11 years ago)
Author:
vboxsync
Message:

NAT: G/c #if0'ed code to send ICMP_SOURCEQUENCH. Source quench is
deprecated and the code under #if 0 is inside if with impossible
condition anyway.

File:
1 edited

Legend:

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

    r46643 r52113  
    304304        Log2(("NAT: UDP tx errno = %d (%s) on sent to %RTnaipv4\n",
    305305              errno, strerror(errno), ip->ip_dst));
    306 #if 0
    307         /* ICMP_SOURCEQUENCH haven't got any effect, the idea here
    308          * inform guest about the exosting NAT resources with assumption that
    309          * that guest reduce traffic. But it doesn't work
    310          */
    311         if(    errno == EAGAIN
    312             || errno == EWOULDBLOCK
    313             || errno == EINPROGRESS
    314             || errno == ENOTCONN)
    315             icmp_error(pData, m, ICMP_SOURCEQUENCH, 0, 1, strerror(errno));
    316         else
    317 #endif
    318             icmp_error(pData, m, ICMP_UNREACH, ICMP_UNREACH_NET, 0, strerror(errno));
     306        icmp_error(pData, m, ICMP_UNREACH, ICMP_UNREACH_NET, 0, strerror(errno));
    319307        so->so_m = NULL;
    320308        LogFlowFuncLeave();
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