Changeset 48460 in vbox
- Timestamp:
- Sep 12, 2013 5:14:51 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/NATNetworkImpl.cpp
r48417 r48460 374 374 } 375 375 376 STDMETHODIMP NATNetwork::COMGETTER(IPv6Enabled)(BOOL *a AdvertiseDefaultIPv6Route)377 { 378 CheckComArgOutPointerValid(a AdvertiseDefaultIPv6Route);379 380 AutoCaller autoCaller(this); 381 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 382 383 *a AdvertiseDefaultIPv6Route = m->fAdvertiseDefaultIPv6Route;384 385 return S_OK; 386 } 387 388 STDMETHODIMP NATNetwork::COMSETTER(IPv6Enabled)(BOOL a AdvertiseDefaultIPv6Route)376 STDMETHODIMP NATNetwork::COMGETTER(IPv6Enabled)(BOOL *aIPv6Enabled) 377 { 378 CheckComArgOutPointerValid(aIPv6Enabled); 379 380 AutoCaller autoCaller(this); 381 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 382 383 *aIPv6Enabled = m->fIPv6Enabled; 384 385 return S_OK; 386 } 387 388 STDMETHODIMP NATNetwork::COMSETTER(IPv6Enabled)(BOOL aIPv6Enabled) 389 389 { 390 390 AutoCaller autoCaller(this); 391 391 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 392 392 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); 393 m->f AdvertiseDefaultIPv6Route = aAdvertiseDefaultIPv6Route;393 m->fIPv6Enabled = aIPv6Enabled; 394 394 395 395 // save the global settings; for that we should hold only the VirtualBox lock
Note:
See TracChangeset
for help on using the changeset viewer.