Lines Matching refs:adapter

366             /* get the corresponding network adapter */
367 ComPtr<INetworkAdapter> adapter;
368 CHECK_ERROR_BREAK(sessionMachine, GetNetworkAdapter(n - 1, adapter.asOutParam()));
369 if (adapter)
373 CHECK_ERROR_BREAK(adapter, COMSETTER(CableConnected)(TRUE));
377 CHECK_ERROR_BREAK(adapter, COMSETTER(CableConnected)(FALSE));
411 /* get the corresponding network adapter */
412 ComPtr<INetworkAdapter> adapter;
413 CHECK_ERROR_BREAK(sessionMachine, GetNetworkAdapter(n - 1, adapter.asOutParam()));
414 if (adapter)
417 adapter->COMGETTER(Enabled)(&fEnabled);
422 CHECK_ERROR_RET(adapter, COMSETTER(TraceFile)(Bstr(a->argv[2]).raw()), 1);
454 /* get the corresponding network adapter */
455 ComPtr<INetworkAdapter> adapter;
456 CHECK_ERROR_BREAK(sessionMachine, GetNetworkAdapter(n - 1, adapter.asOutParam()));
457 if (adapter)
460 adapter->COMGETTER(Enabled)(&fEnabled);
465 CHECK_ERROR_RET(adapter, COMSETTER(TraceEnabled)(TRUE), 1);
469 CHECK_ERROR_RET(adapter, COMSETTER(TraceEnabled)(FALSE), 1);
502 /* get the corresponding network adapter */
503 ComPtr<INetworkAdapter> adapter;
504 CHECK_ERROR_BREAK(sessionMachine, GetNetworkAdapter(n - 1, adapter.asOutParam()));
505 if (!adapter)
511 CHECK_ERROR(adapter, COMGETTER(NATEngine)(engine.asOutParam()));
595 /* get the corresponding network adapter */
596 ComPtr<INetworkAdapter> adapter;
597 CHECK_ERROR_BREAK(sessionMachine, GetNetworkAdapter(n - 1, adapter.asOutParam()));
598 if (adapter)
601 adapter->COMGETTER(Enabled)(&fEnabled);
615 CHECK_ERROR(adapter, SetProperty(bstrName.raw(), bstrValue.raw()));
655 /* get the corresponding network adapter */
656 ComPtr<INetworkAdapter> adapter;
657 CHECK_ERROR_BREAK(sessionMachine, GetNetworkAdapter(n - 1, adapter.asOutParam()));
658 if (adapter)
661 adapter->COMGETTER(Enabled)(&fEnabled);
679 CHECK_ERROR(adapter, COMSETTER(PromiscModePolicy)(enmPromiscModePolicy));
704 /* get the corresponding network adapter */
705 ComPtr<INetworkAdapter> adapter;
706 CHECK_ERROR_BREAK(sessionMachine, GetNetworkAdapter(n - 1, adapter.asOutParam()));
707 if (adapter)
710 adapter->COMGETTER(Enabled)(&fEnabled);
715 CHECK_ERROR_RET(adapter, COMSETTER(Enabled)(TRUE), 1);
716 CHECK_ERROR_RET(adapter, COMSETTER(AttachmentType)(NetworkAttachmentType_Null), 1);
720 CHECK_ERROR_RET(adapter, COMSETTER(Enabled)(TRUE), 1);
722 CHECK_ERROR_RET(adapter, COMSETTER(NATNetwork)(Bstr(a->argv[3]).raw()), 1);
723 CHECK_ERROR_RET(adapter, COMSETTER(AttachmentType)(NetworkAttachmentType_NAT), 1);
734 CHECK_ERROR_RET(adapter, COMSETTER(Enabled)(TRUE), 1);
735 CHECK_ERROR_RET(adapter, COMSETTER(BridgedInterface)(Bstr(a->argv[3]).raw()), 1);
736 CHECK_ERROR_RET(adapter, COMSETTER(AttachmentType)(NetworkAttachmentType_Bridged), 1);
746 CHECK_ERROR_RET(adapter, COMSETTER(Enabled)(TRUE), 1);
747 CHECK_ERROR_RET(adapter, COMSETTER(InternalNetwork)(Bstr(a->argv[3]).raw()), 1);
748 CHECK_ERROR_RET(adapter, COMSETTER(AttachmentType)(NetworkAttachmentType_Internal), 1);
759 CHECK_ERROR_RET(adapter, COMSETTER(Enabled)(TRUE), 1);
760 CHECK_ERROR_RET(adapter, COMSETTER(HostOnlyInterface)(Bstr(a->argv[3]).raw()), 1);
761 CHECK_ERROR_RET(adapter, COMSETTER(AttachmentType)(NetworkAttachmentType_HostOnly), 1);
772 CHECK_ERROR_RET(adapter, COMSETTER(Enabled)(TRUE), 1);
773 CHECK_ERROR_RET(adapter, COMSETTER(GenericDriver)(Bstr(a->argv[3]).raw()), 1);
774 CHECK_ERROR_RET(adapter, COMSETTER(AttachmentType)(NetworkAttachmentType_Generic), 1);
784 CHECK_ERROR_RET(adapter, COMSETTER(Enabled)(TRUE), 1);
785 CHECK_ERROR_RET(adapter, COMSETTER(NATNetwork)(Bstr(a->argv[3]).raw()), 1);
786 CHECK_ERROR_RET(adapter, COMSETTER(AttachmentType)(NetworkAttachmentType_NATNetwork), 1);
797 CHECK_ERROR_RET(adapter, COMSETTER(Enabled)(TRUE), 1);
798 CHECK_ERROR_RET(adapter, COMSETTER(AttachmentType)(NetworkAttachmentType_Generic), 1);
799 CHECK_ERROR_RET(adapter, SetProperty(Bstr("name").raw(), Bstr(a->argv[3]).raw()), 1);