Changeset 88755 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Apr 28, 2021 8:05:45 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageNATNetwork.cpp
r87370 r88755 91 91 { 92 92 Bstr strVal; 93 BOOL fVal; 94 93 95 CHECK_ERROR_BREAK(pNATNet, COMGETTER(NetworkName)(strVal.asOutParam())); 94 RTPrintf("Name: %ls\n", strVal.raw()); 96 RTPrintf("Name: %ls\n", strVal.raw()); 97 95 98 CHECK_ERROR_BREAK(pNATNet, COMGETTER(Network)(strVal.asOutParam())); 96 RTPrintf("Network: %ls\n", strVal.raw()); 99 RTPrintf("Network: %ls\n", strVal.raw()); 100 97 101 CHECK_ERROR_BREAK(pNATNet, COMGETTER(Gateway)(strVal.asOutParam())); 98 RTPrintf("Gateway: %ls\n", strVal.raw()); 99 BOOL fVal; 102 RTPrintf("Gateway: %ls\n", strVal.raw()); 103 104 CHECK_ERROR_BREAK(pNATNet, COMGETTER(NeedDhcpServer)(&fVal)); 105 RTPrintf("DHCP Sever: %s\n", fVal ? "Yes" : "No"); 106 100 107 CHECK_ERROR_BREAK(pNATNet, COMGETTER(IPv6Enabled)(&fVal)); 101 RTPrintf("IPv6: %s\n", fVal ? "Yes" : "No"); 102 if (fVal) 103 { 104 CHECK_ERROR_BREAK(pNATNet, COMGETTER(IPv6Prefix)(strVal.asOutParam())); 105 RTPrintf("IPv6 Prefix: %ls\n", strVal.raw()); 106 } 108 RTPrintf("IPv6: %s\n", fVal ? "Yes" : "No"); 109 110 CHECK_ERROR_BREAK(pNATNet, COMGETTER(IPv6Prefix)(strVal.asOutParam())); 111 RTPrintf("IPv6 Prefix: %ls\n", strVal.raw()); 112 113 CHECK_ERROR_BREAK(pNATNet, COMGETTER(AdvertiseDefaultIPv6RouteEnabled)(&fVal)); 114 RTPrintf("IPv6 Default: %s\n", fVal ? "Yes" : "No"); 115 116 107 117 CHECK_ERROR_BREAK(pNATNet, COMGETTER(Enabled)(&fVal)); 108 RTPrintf("Enabled: %s\n", fVal ? "Yes" : "No");118 RTPrintf("Enabled: %s\n", fVal ? "Yes" : "No"); 109 119 /** @todo Add more information here. */ 110 120 RTPrintf("\n");
Note:
See TracChangeset
for help on using the changeset viewer.