VirtualBox

Changeset 5436 in vbox for trunk/src


Ignore:
Timestamp:
Oct 22, 2007 8:22:51 AM (17 years ago)
Author:
vboxsync
Message:

Back out NAT ping error message code.

Location:
trunk/src/VBox/Devices/Network
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/DrvNAT.cpp

    r5332 r5436  
    5656    /** Boot file name to provide in the DHCP server response. */
    5757    char                    *pszBootFile;
    58     /** Flag whether a NAT ping warning has been shown. */
    59     bool                    fSuppressPingWarning;
    6058} DRVNAT, *PDRVNAT;
    6159
     
    244242    LogFlow(("slirp_output END %x %d\n", pu8Buf, cb));
    245243}
    246 
    247 
    248 /**
    249  * Function called by slirp to signal that a ping had to be dropped.
    250  */
    251 void slirp_cannot_ping(void *pvUser)
    252 {
    253     PDRVNAT pData = (PDRVNAT)pvUser;
    254 
    255     Assert(pData);
    256 
    257     /** Happens during termination */
    258     if (!RTCritSectIsOwner(&pData->CritSect))
    259         return;
    260 
    261     if (!pData->fSuppressPingWarning)
    262     {
    263         pData->fSuppressPingWarning = true;
    264         PDMDRV_SET_RUNTIME_ERROR(pData->pDrvIns, false, "NAT_PING", N_("The guest OS sent out a ping request which cannot be handled by NAT"));
    265     }
    266 }
    267 
    268244
    269245/**
  • trunk/src/VBox/Devices/Network/slirp/ip_icmp.c

    r5291 r5436  
    115115      icmp_reflect(pData, m);
    116116    } else {
    117 #if 1
    118       slirp_cannot_ping(pData->pvUser);
    119       m_freem(pData, m);
    120 #else
    121117      struct socket *so;
    122118      struct sockaddr_in addr;
     
    162158        udp_detach(pData, so);
    163159      }
    164 #endif
    165160    } /* if ip->ip_dst.s_addr == alias_addr.s_addr */
    166161    break;
  • trunk/src/VBox/Devices/Network/slirp/libslirp.h

    r5332 r5436  
    4242int slirp_can_output(void * pvUser);
    4343void slirp_output(void * pvUser, const uint8_t *pkt, int pkt_len);
    44 void slirp_cannot_ping(void * pvUser);
    4544
    4645int slirp_redir(PNATState pData, int is_udp, int host_port,
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