VirtualBox

Changeset 20387 in vbox


Ignore:
Timestamp:
Jun 8, 2009 9:18:57 AM (16 years ago)
Author:
vboxsync
Message:

NAT: CFGM keys are \0 terminated

File:
1 edited

Legend:

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

    r20383 r20387  
    718718     * Validate the config.
    719719     */
    720 #ifndef VBOX_WITH_SLIRP_DNS_PROXY
    721720    if (!CFGMR3AreValuesValid(pCfgHandle, "PassDomain\0TFTPPrefix\0BootFile\0Network\0NextServer\0"
    722 #else
    723     if (!CFGMR3AreValuesValid(pCfgHandle, "PassDomain\0TFTPPrefix\0BootFile\0Network\0NextServer\0DNSProxy\0"
    724 #endif
    725         "SocketRcvBuf\0SocketSndBuf\0TcpRcvSpace\0TcpSndSpace"))
    726         return PDMDRV_SET_ERROR(pDrvIns, VERR_PDM_DRVINS_UNKNOWN_CFG_VALUES, N_("Unknown NAT configuration option, only supports PassDomain, TFTPPrefix, BootFile and Network"));
     721#ifdef VBOX_WITH_SLIRP_DNS_PROXY
     722        "DNSProxy\0"
     723#endif
     724        "SocketRcvBuf\0SocketSndBuf\0TcpRcvSpace\0TcpSndSpace\0"))
     725        return PDMDRV_SET_ERROR(pDrvIns, VERR_PDM_DRVINS_UNKNOWN_CFG_VALUES,
     726                                N_("Unknown NAT configuration option, only supports PassDomain, TFTPPrefix, BootFile and Network"));
    727727
    728728    /*
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