Changeset 51498 in vbox for trunk/src/VBox/Main/src-server/NATEngineImpl.cpp
- Timestamp:
- Jun 2, 2014 6:53:08 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/NATEngineImpl.cpp
r51092 r51498 5 5 6 6 /* 7 * Copyright (C) 2010-201 3Oracle Corporation7 * Copyright (C) 2010-2014 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 259 259 260 260 if (m_fModified) 261 mParent-> setModified(Machine::IsModified_NetworkAdapters);261 mParent->i_setModified(Machine::IsModified_NetworkAdapters); 262 262 return S_OK; 263 263 } … … 327 327 r.u16GuestPort = aGuestPort; 328 328 mNATRules.insert(std::make_pair(name, r)); 329 mParent-> setModified(Machine::IsModified_NetworkAdapters);329 mParent->i_setModified(Machine::IsModified_NetworkAdapters); 330 330 m_fModified = true; 331 331 … … 334 334 335 335 alock.release(); 336 mParent-> onNATRedirectRuleChange(ulSlot, FALSE, Bstr(name).raw(), aProto, Bstr(r.strHostIP).raw(),337 r.u16HostPort, Bstr(r.strGuestIP).raw(), r.u16GuestPort);336 mParent->i_onNATRedirectRuleChange(ulSlot, FALSE, Bstr(name).raw(), aProto, Bstr(r.strHostIP).raw(), 337 r.u16HostPort, Bstr(r.strGuestIP).raw(), r.u16GuestPort); 338 338 return S_OK; 339 339 } … … 356 356 357 357 mNATRules.erase(it); 358 mParent-> setModified(Machine::IsModified_NetworkAdapters);358 mParent->i_setModified(Machine::IsModified_NetworkAdapters); 359 359 m_fModified = true; 360 360 mData->m.commit(); 361 361 alock.release(); 362 mParent-> onNATRedirectRuleChange(ulSlot, TRUE, Bstr(aName).raw(), proto, Bstr(strHostIP).raw(),363 u16HostPort, Bstr(strGuestIP).raw(), u16GuestPort);362 mParent->i_onNATRedirectRuleChange(ulSlot, TRUE, Bstr(aName).raw(), proto, Bstr(strHostIP).raw(), 363 u16HostPort, Bstr(strGuestIP).raw(), u16GuestPort); 364 364 return S_OK; 365 365 } … … 443 443 mData->m.backup(); 444 444 mData->m->mNetwork = aNetwork; 445 mParent-> setModified(Machine::IsModified_NetworkAdapters);445 mParent->i_setModified(Machine::IsModified_NetworkAdapters); 446 446 m_fModified = true; 447 447 } … … 468 468 mData->m.backup(); 469 469 mData->m->mBindIP = aHostIP; 470 mParent-> setModified(Machine::IsModified_NetworkAdapters);470 mParent->i_setModified(Machine::IsModified_NetworkAdapters); 471 471 m_fModified = true; 472 472 } … … 490 490 mData->m.backup(); 491 491 mData->m->mTFTPPrefix = aTFTPPrefix; 492 mParent-> setModified(Machine::IsModified_NetworkAdapters);492 mParent->i_setModified(Machine::IsModified_NetworkAdapters); 493 493 m_fModified = true; 494 494 } … … 516 516 mData->m.backup(); 517 517 mData->m->mTFTPBootFile = aTFTPBootFile; 518 mParent-> setModified(Machine::IsModified_NetworkAdapters);518 mParent->i_setModified(Machine::IsModified_NetworkAdapters); 519 519 m_fModified = true; 520 520 } … … 542 542 mData->m.backup(); 543 543 mData->m->mTFTPNextServer = aTFTPNextServer; 544 mParent-> setModified(Machine::IsModified_NetworkAdapters);544 mParent->i_setModified(Machine::IsModified_NetworkAdapters); 545 545 m_fModified = true; 546 546 } … … 568 568 mData->m.backup(); 569 569 mData->m->mDNSPassDomain = aDNSPassDomain; 570 mParent-> setModified(Machine::IsModified_NetworkAdapters);570 mParent->i_setModified(Machine::IsModified_NetworkAdapters); 571 571 m_fModified = true; 572 572 } … … 590 590 mData->m.backup(); 591 591 mData->m->mDNSProxy = aDNSProxy; 592 mParent-> setModified(Machine::IsModified_NetworkAdapters);592 mParent->i_setModified(Machine::IsModified_NetworkAdapters); 593 593 m_fModified = true; 594 594 } … … 618 618 mData->m.backup(); 619 619 mData->m->mDNSUseHostResolver = aDNSUseHostResolver; 620 mParent-> setModified(Machine::IsModified_NetworkAdapters);620 mParent->i_setModified(Machine::IsModified_NetworkAdapters); 621 621 m_fModified = true; 622 622 } … … 632 632 mData->m.backup(); 633 633 mData->m->mAliasMode = aAliasMode; 634 mParent-> setModified(Machine::IsModified_NetworkAdapters);634 mParent->i_setModified(Machine::IsModified_NetworkAdapters); 635 635 m_fModified = true; 636 636 }
Note:
See TracChangeset
for help on using the changeset viewer.