Changeset 79530 in vbox for trunk/src/VBox/NetworkServices/Dhcpd/Db.cpp
- Timestamp:
- Jul 4, 2019 6:25:04 PM (6 years ago)
- svn:sync-xref-src-repo-rev:
- 131815
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/NetworkServices/Dhcpd/Db.cpp
r79529 r79530 369 369 * @param id The client ID. 370 370 */ 371 Binding *Db:: createBinding(const ClientId &id)371 Binding *Db::i_createBinding(const ClientId &id) 372 372 { 373 373 Binding *pBinding = NULL; … … 400 400 * @param id The client. 401 401 */ 402 Binding *Db:: createBinding(RTNETADDRIPV4 addr, const ClientId &id)402 Binding *Db::i_createBinding(RTNETADDRIPV4 addr, const ClientId &id) 403 403 { 404 404 bool fAvailable = m_pool.allocate(addr); … … 423 423 * the preferred address (@a addr) into account when possible and if non-zero. 424 424 */ 425 Binding *Db:: allocateAddress(const ClientId &id, RTNETADDRIPV4 addr)425 Binding *Db::i_allocateAddress(const ClientId &id, RTNETADDRIPV4 addr) 426 426 { 427 427 Assert(addr.u == 0 || addressBelongs(addr)); … … 503 503 if (addrBinding == NULL) 504 504 { 505 addrBinding = createBinding(addr, id);505 addrBinding = i_createBinding(addr, id); 506 506 Assert(addrBinding != NULL); 507 507 LogDHCP(("> .... creating new binding for this address %R[binding]\n", addrBinding)); … … 529 529 else 530 530 { 531 idBinding = createBinding();531 idBinding = i_createBinding(); 532 532 if (idBinding != NULL) 533 533 LogDHCP(("> .... creating new binding\n")); … … 586 586 const ClientId &id(req.clientId()); 587 587 588 Binding *b = allocateAddress(id, reqAddr.value());588 Binding *b = i_allocateAddress(id, reqAddr.value()); 589 589 if (b != NULL) 590 590 { … … 607 607 * 608 608 * @returns IPRT status code. 609 * @param newb.610 */ 611 int Db:: addBinding(Binding *pNewBinding)609 * @param pNewBinding The new binding to add. 610 */ 611 int Db::i_addBinding(Binding *pNewBinding) 612 612 { 613 613 /* … … 841 841 if (pElmLease->nameEquals("Lease")) 842 842 { 843 int rc2 = loadLease(pElmLease);843 int rc2 = i_loadLease(pElmLease); 844 844 if (RT_SUCCESS(rc2)) 845 845 { /* likely */ } … … 863 863 * @return IPRT status code. 864 864 */ 865 int Db:: loadLease(const xml::ElementNode *pElmLease)865 int Db::i_loadLease(const xml::ElementNode *pElmLease) 866 866 { 867 867 Binding *pBinding = NULL; … … 882 882 LogDHCP(("> LOAD: EXPIRED lease %R[binding]\n", pBinding)); 883 883 884 int rc = addBinding(pBinding);884 int rc = i_addBinding(pBinding); 885 885 if (RT_FAILURE(rc)) 886 886 delete pBinding;
Note:
See TracChangeset
for help on using the changeset viewer.