VirtualBox

Ignore:
Timestamp:
Jul 4, 2019 6:25:04 PM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
131815
Message:

Dhcpd: Went over the Db and IPv4Pool code adding comments and and such. [doxygen+scm] bugref:9288

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/NetworkServices/Dhcpd/Db.cpp

    r79529 r79530  
    369369 * @param   id          The client ID.
    370370 */
    371 Binding *Db::createBinding(const ClientId &id)
     371Binding *Db::i_createBinding(const ClientId &id)
    372372{
    373373    Binding      *pBinding = NULL;
     
    400400 * @param   id          The client.
    401401 */
    402 Binding *Db::createBinding(RTNETADDRIPV4 addr, const ClientId &id)
     402Binding *Db::i_createBinding(RTNETADDRIPV4 addr, const ClientId &id)
    403403{
    404404    bool fAvailable = m_pool.allocate(addr);
     
    423423 * the preferred address (@a addr) into account when possible and if non-zero.
    424424 */
    425 Binding *Db::allocateAddress(const ClientId &id, RTNETADDRIPV4 addr)
     425Binding *Db::i_allocateAddress(const ClientId &id, RTNETADDRIPV4 addr)
    426426{
    427427    Assert(addr.u == 0 || addressBelongs(addr));
     
    503503        if (addrBinding == NULL)
    504504        {
    505             addrBinding = createBinding(addr, id);
     505            addrBinding = i_createBinding(addr, id);
    506506            Assert(addrBinding != NULL);
    507507            LogDHCP(("> .... creating new binding for this address %R[binding]\n", addrBinding));
     
    529529    else
    530530    {
    531         idBinding = createBinding();
     531        idBinding = i_createBinding();
    532532        if (idBinding != NULL)
    533533            LogDHCP(("> .... creating new binding\n"));
     
    586586    const ClientId &id(req.clientId());
    587587
    588     Binding *b = allocateAddress(id, reqAddr.value());
     588    Binding *b = i_allocateAddress(id, reqAddr.value());
    589589    if (b != NULL)
    590590    {
     
    607607 *
    608608 * @returns IPRT status code.
    609  * @param   newb                .
    610  */
    611 int Db::addBinding(Binding *pNewBinding)
     609 * @param   pNewBinding     The new binding to add.
     610 */
     611int Db::i_addBinding(Binding *pNewBinding)
    612612{
    613613    /*
     
    841841        if (pElmLease->nameEquals("Lease"))
    842842        {
    843             int rc2 = loadLease(pElmLease);
     843            int rc2 = i_loadLease(pElmLease);
    844844            if (RT_SUCCESS(rc2))
    845845            { /* likely */ }
     
    863863 * @return  IPRT status code.
    864864 */
    865 int Db::loadLease(const xml::ElementNode *pElmLease)
     865int Db::i_loadLease(const xml::ElementNode *pElmLease)
    866866{
    867867    Binding *pBinding = NULL;
     
    882882            LogDHCP(("> LOAD: EXPIRED lease %R[binding]\n", pBinding));
    883883
    884         int rc = addBinding(pBinding);
     884        int rc = i_addBinding(pBinding);
    885885        if (RT_FAILURE(rc))
    886886            delete pBinding;
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