Changeset 49127 in vbox for trunk/src/VBox/Main
- Timestamp:
- Oct 16, 2013 10:18:34 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/NATNetworkImpl.cpp
r49126 r49127 296 296 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 297 297 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); 298 299 if (aName == mName) 300 return S_OK; 301 298 302 unconst(mName) = aName; 299 303 … … 327 331 HRESULT rc = S_OK; 328 332 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); 333 334 if (aEnabled == m->fEnabled) 335 return S_OK; 336 329 337 m->fEnabled = aEnabled; 330 338 … … 368 376 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 369 377 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); 378 379 if (aIPv4NetworkCidr == m->IPv4NetworkCidr) 380 return S_OK; 381 370 382 /* silently ignore network cidr update */ 371 383 if (m->mapName2PortForwardRule4.empty()) … … 401 413 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 402 414 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); 415 416 if (aIPv6Enabled == m->fIPv6Enabled) 417 return S_OK; 418 403 419 m->fIPv6Enabled = aIPv6Enabled; 404 420 … … 436 452 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); 437 453 454 if (aIPv6Prefix == m->IPv6Prefix) 455 return S_OK; 456 438 457 /* silently ignore network cidr update */ 439 458 if (m->mapName2PortForwardRule6.empty()) … … 469 488 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 470 489 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); 490 491 if (aAdvertiseDefaultIPv6Route == m->fAdvertiseDefaultIPv6Route) 492 return S_OK; 493 471 494 m->fAdvertiseDefaultIPv6Route = aAdvertiseDefaultIPv6Route; 472 495 … … 499 522 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 500 523 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); 524 525 if (aNeedDhcpServer == m->fNeedDhcpServer) 526 return S_OK; 527 501 528 m->fNeedDhcpServer = aNeedDhcpServer; 502 529 … … 628 655 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); 629 656 657 if (aLoopbackIp6 < 0) 658 return E_INVALIDARG; 659 660 if (static_cast<uint32_t>(aLoopbackIp6) == m->u32LoopbackIp6) 661 return S_OK; 662 630 663 m->u32LoopbackIp6 = aLoopbackIp6; 631 664
Note:
See TracChangeset
for help on using the changeset viewer.