VirtualBox

Changeset 21010 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jun 29, 2009 4:36:17 AM (16 years ago)
Author:
vboxsync
Message:

NAT: lines are too long

File:
1 edited

Legend:

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

    r21009 r21010  
    8181#define GET_STRING_ALLOC(rc, node, drv_inst, name, var) \
    8282    GET_EXTRADATA(node, drv_inst, name, (rc), StringAlloc, string, (var))
     83#define GET_S32(rc, node, drv_inst, name, var) \
     84    GET_EXTRADATA(node, drv_inst, name, (rc), S32, int, (var))
    8385
    8486/*******************************************************************************
     
    827829    GET_STRING_ALLOC(rc, pCfgHandle, pDrvIns->iInstance, "NextServer", pThis->pszNextServer);
    828830
    829     int fDNSProxy;
    830     rc = CFGMR3QueryS32(pCfgHandle, "DNSProxy", &fDNSProxy);
    831     if (rc == VERR_CFGM_VALUE_NOT_FOUND)
    832         fDNSProxy = 0;
     831    int fDNSProxy = 0;
     832    GET_S32(rc, pCfgHandle, pDrvIns->iInstance, "DNSProxy", fDNSProxy);
    833833
    834834    /*
     
    859859    rc = RTCidrStrToIPv4(szNetwork, &Network, &Netmask);
    860860    if (RT_FAILURE(rc))
    861         return PDMDrvHlpVMSetError(pDrvIns, rc, RT_SRC_POS, N_("NAT#%d: Configuration error: network '%s' describes not a valid IPv4 network"), pDrvIns->iInstance, szNetwork);
     861        return PDMDrvHlpVMSetError(pDrvIns, rc, RT_SRC_POS, N_("NAT#%d: Configuration error: "
     862                                   "network '%s' describes not a valid IPv4 network"),
     863                                   pDrvIns->iInstance, szNetwork);
    862864
    863865    RTStrPrintf(szNetAddr, sizeof(szNetAddr), "%d.%d.%d.%d",
    864                (Network & 0xFF000000) >> 24, (Network & 0xFF0000) >> 16, (Network & 0xFF00) >> 8, Network & 0xFF);
     866               (Network & 0xFF000000) >> 24, (Network & 0xFF0000) >> 16,
     867               (Network & 0xFF00) >> 8, Network & 0xFF);
    865868
    866869    /*
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