VirtualBox

Ignore:
Timestamp:
Oct 7, 2013 10:00:27 PM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
89653
Message:

NetworkServices: Whitespace (including tabs!) and svn:keywords cleanups by scm.

Location:
trunk/src/VBox/NetworkServices/DHCP
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/NetworkServices/DHCP/Config.cpp

    r48877 r48956  
    124124    bool fDhcpValid = false;
    125125    uint8_t uMsgType = 0;
    126    
     126
    127127    fDhcpValid = RTNetIPv4IsDHCPValid(NULL, pDhcpMsg, cbDhcpMsg, &uMsgType);
    128128    AssertReturn(fDhcpValid, NULL);
     
    230230     */
    231231    AssertPtrReturn(client, NULL);
    232    
     232
    233233    /**
    234234     * This mean that client has already bound or commited lease.
    235      * If we've it happens it means that we received DHCPDISCOVER twice. 
     235     * If we've it happens it means that we received DHCPDISCOVER twice.
    236236     */
    237237    if (client->m_lease)
     
    265265    }
    266266
    267     if (   hintAddress.u 
     267    if (   hintAddress.u
    268268        && !isAddressTaken(hintAddress, NULL))
    269269    {
     
    295295        }
    296296    }
    297    
     297
    298298    return NULL;
    299299}
     
    318318    delete client->m_lease;
    319319    client->m_lease = NULL;
    320    
     320
    321321    return VINF_SUCCESS;
    322322}
     
    325325{
    326326    MapLease2Ip4AddressIterator it;
    327    
     327
    328328    for (it = m_allocations.begin();
    329329         it != m_allocations.end();
     
    334334            if (ppLease)
    335335                *ppLease = it->first;
    336            
     336
    337337            return true;
    338338        }
     
    477477 * Network manager creates DHCPOFFER datagramm
    478478 */
    479 int NetworkManager::offer4Client(Client *client, uint32_t u32Xid, 
     479int NetworkManager::offer4Client(Client *client, uint32_t u32Xid,
    480480                                 uint8_t *pu8ReqList, int cReqList)
    481481{
     
    485485    prepareReplyPacket4Client(client, u32Xid);
    486486
    487    
     487
    488488    RTNETADDRIPV4 address = client->m_lease->m_address;
    489489    BootPReplyMsg.BootPHeader.bp_yiaddr =  address;
     
    579579{
    580580    AssertPtrReturn(client, VERR_INTERNAL_ERROR);
    581    
    582     if (!client->m_lease) 
     581
     582    if (!client->m_lease)
    583583        return VERR_INTERNAL_ERROR;
    584584
     
    740740            case RTNET_DHCP_OPT_DNS:
    741741                {
    742                     const Ipv4AddressContainer lst = 
     742                    const Ipv4AddressContainer lst =
    743743                      g_ConfigurationManager->getAddressList(pReqList[idxParam]);
    744744                    PRTNETADDRIPV4 pAddresses = (PRTNETADDRIPV4)&opt.au8RawOpt[0];
  • trunk/src/VBox/NetworkServices/DHCP/Config.h

    r48483 r48956  
    366366
    367367    /**
    368      * 
     368     *
    369369     */
    370370    Client* getClientByDhcpPacket(const RTNETBOOTP *pDhcpMsg, size_t cbDhcpMsg);
     
    382382     */
    383383    int commitLease4Client(Client *client);
    384    
     384
    385385    /**
    386386     * Expires client lease.
     
    487487    }
    488488    virtual ~Lease(){}
    489    
     489
    490490    bool isExpired()
    491491    {
    492492        if (!fBinding)
    493             return (ASMDivU64ByU32RetU32(RTTimeMilliTS() - u64TimestampLeasingStarted, 1000) 
     493            return (ASMDivU64ByU32RetU32(RTTimeMilliTS() - u64TimestampLeasingStarted, 1000)
    494494                    > u32LeaseExpirationPeriod);
    495495        else
    496             return (ASMDivU64ByU32RetU32(RTTimeMilliTS() - u64TimestampBindingStarted, 1000) 
     496            return (ASMDivU64ByU32RetU32(RTTimeMilliTS() - u64TimestampBindingStarted, 1000)
    497497                    > u32BindExpirationPeriod);
    498498
     
    501501    /* XXX private: */
    502502    RTNETADDRIPV4 m_address;
    503    
     503
    504504    /** lease isn't commited */
    505505    bool fBinding;
    506    
     506
    507507    /** Timestamp when lease commited. */
    508508    uint64_t u64TimestampLeasingStarted;
  • trunk/src/VBox/NetworkServices/DHCP/Makefile.kmk

    r47025 r48956  
    5757
    5858#
    59 # VBOXMAINCLIENT here only to use DhcpOpt_T type. 
     59# VBOXMAINCLIENT here only to use DhcpOpt_T type.
    6060tstDhcpConfig_TEMPLATE = VBOXMAINCLIENTEXE
    6161#XXX: enable condtionally if user is vvl
  • trunk/src/VBox/NetworkServices/DHCP/VBoxNetDHCP.cpp

    r48461 r48956  
    467467            if (SUCCEEDED(host->COMGETTER(DomainName)(domain.asOutParam())))
    468468                confManager->setString(RTNET_DHCP_OPT_DOMAIN_NAME, std::string(com::Utf8Str(domain).c_str()));
    469            
     469
    470470
    471471        }
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