Changeset 50874 in vbox for trunk/src/VBox/Main/src-server/generic
- Timestamp:
- Mar 25, 2014 6:29:02 PM (11 years ago)
- svn:sync-xref-src-repo-rev:
- 92972
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/generic/NetIf-generic.cpp
r50196 r50874 157 157 } 158 158 159 int NetIfEnableStaticIpConfigV6(VirtualBox * /* vBox */, HostNetworkInterface * pIf, IN_BSTR aOldIPV6Address, IN_BSTR aIPV6Address, ULONG aIPV6MaskPrefixLength) 159 int NetIfEnableStaticIpConfigV6(VirtualBox * /* vBox */, HostNetworkInterface * pIf, IN_BSTR aOldIPV6Address, 160 IN_BSTR aIPV6Address, ULONG aIPV6MaskPrefixLength) 160 161 { 161 162 char szAddress[5*8 + 1 + 5 + 1]; … … 205 206 if (RT_FAILURE(rc)) 206 207 { 207 progress-> notifyComplete(E_FAIL,208 COM_IIDOF(IHostNetworkInterface),209 HostNetworkInterface::getStaticComponentName(),210 "Failed to get program path, rc=%Rrc\n", rc);208 progress->i_notifyComplete(E_FAIL, 209 COM_IIDOF(IHostNetworkInterface), 210 HostNetworkInterface::getStaticComponentName(), 211 "Failed to get program path, rc=%Rrc\n", rc); 211 212 return rc; 212 213 } … … 235 236 if (!strncmp(VBOXNETADPCTL_NAME ":", szBuf, sizeof(VBOXNETADPCTL_NAME))) 236 237 { 237 progress-> notifyComplete(E_FAIL,238 COM_IIDOF(IHostNetworkInterface),239 HostNetworkInterface::getStaticComponentName(),240 "%s", szBuf);238 progress->i_notifyComplete(E_FAIL, 239 COM_IIDOF(IHostNetworkInterface), 240 HostNetworkInterface::getStaticComponentName(), 241 "%s", szBuf); 241 242 pclose(fp); 242 243 return E_FAIL; … … 254 255 if (RT_FAILURE(rc)) 255 256 { 256 progress->notifyComplete(E_FAIL, 257 COM_IIDOF(IHostNetworkInterface), 258 HostNetworkInterface::getStaticComponentName(), 259 "Failed to get config info for %s (as reported by '" VBOXNETADPCTL_NAME " add')\n", szBuf); 257 progress->i_notifyComplete(E_FAIL, 258 COM_IIDOF(IHostNetworkInterface), 259 HostNetworkInterface::getStaticComponentName(), 260 "Failed to get config info for %s (as reported by '" 261 VBOXNETADPCTL_NAME " add')\n", szBuf); 260 262 } 261 263 else … … 273 275 if ((rc = pclose(fp)) != 0) 274 276 { 275 progress-> notifyComplete(E_FAIL,276 COM_IIDOF(IHostNetworkInterface),277 HostNetworkInterface::getStaticComponentName(),278 "Failed to execute '" VBOXNETADPCTL_NAME " add' (exit status: %d)", rc);277 progress->i_notifyComplete(E_FAIL, 278 COM_IIDOF(IHostNetworkInterface), 279 HostNetworkInterface::getStaticComponentName(), 280 "Failed to execute '" VBOXNETADPCTL_NAME " add' (exit status: %d)", rc); 279 281 rc = VERR_INTERNAL_ERROR; 280 282 } … … 284 286 /* Failed to add an interface */ 285 287 rc = VERR_PERMISSION_DENIED; 286 progress->notifyComplete(E_FAIL, 287 COM_IIDOF(IHostNetworkInterface), 288 HostNetworkInterface::getStaticComponentName(), 289 "Failed to execute '" VBOXNETADPCTL_NAME " add' (exit status: %d). Check permissions!", rc); 288 progress->i_notifyComplete(E_FAIL, 289 COM_IIDOF(IHostNetworkInterface), 290 HostNetworkInterface::getStaticComponentName(), 291 "Failed to execute '" VBOXNETADPCTL_NAME 292 " add' (exit status: %d). Check permissions!", rc); 290 293 pclose(fp); 291 294 } 292 295 } 293 296 if (RT_SUCCESS(rc)) 294 progress-> notifyComplete(rc);297 progress->i_notifyComplete(rc); 295 298 else 296 299 hrc = E_FAIL; … … 337 340 rc = NetIfAdpCtl(Utf8Str(ifname).c_str(), "remove", NULL, NULL); 338 341 if (RT_FAILURE(rc)) 339 progress-> notifyComplete(E_FAIL,340 COM_IIDOF(IHostNetworkInterface),341 HostNetworkInterface::getStaticComponentName(),342 "Failed to execute '" VBOXNETADPCTL_NAME "' (exit status: %d)", rc);342 progress->i_notifyComplete(E_FAIL, 343 COM_IIDOF(IHostNetworkInterface), 344 HostNetworkInterface::getStaticComponentName(), 345 "Failed to execute '" VBOXNETADPCTL_NAME "' (exit status: %d)", rc); 343 346 else 344 progress-> notifyComplete(S_OK);347 progress->i_notifyComplete(S_OK); 345 348 } 346 349 } 347 350 else 348 351 { 349 progress-> notifyComplete(hr);352 progress->i_notifyComplete(hr); 350 353 rc = VERR_INTERNAL_ERROR; 351 354 }
Note:
See TracChangeset
for help on using the changeset viewer.