VirtualBox

Changeset 16509 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Feb 4, 2009 11:26:01 AM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
42425
Message:

#2954 & #3569: Linux TAP driver is embedded to vboxnetflt. API, VBoxManage and VirtualBox now provide host-only network attachment on Linux.

Location:
trunk/src/VBox/Frontends
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManage.cpp

    r16485 r16509  
    361361                 "                            [-floppy disabled|empty|<uuid>|\n"
    362362                 "                                     <filename>|host:<drive>]\n"
     363#ifdef RT_OS_LINUX
     364                 "                            [-nic<1-N> none|null|nat|hostif|intnet|hostonly]\n"
     365#else /* !RT_OS_LINUX */
    363366                 "                            [-nic<1-N> none|null|nat|hostif|intnet]\n"
     367#endif /* !RT_OS_LINUX */
    364368                 "                            [-nictype<1-N> Am79C970A|Am79C973"
    365369#ifdef VBOX_WITH_E1000
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageInfo.cpp

    r16052 r16509  
    699699                        break;
    700700                    }
     701                    case NetworkAttachmentType_HostOnly:
     702                    {
     703                        if (details == VMINFO_MACHINEREADABLE)
     704                        {
     705                            strAttachment = "hostonly";
     706                        }
     707                        else
     708                            strAttachment = "Host-only Network";
     709                        break;
     710                    }
    701711                    default:
    702712                        strAttachment = "unknown";
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageModifyVM.cpp

    r16491 r16509  
    13881388                    CHECK_ERROR_RET(nic, AttachToInternalNetwork(), 1);
    13891389                }
     1390#ifdef RT_OS_LINUX
     1391                else if (strcmp(nics[n], "hostonly") == 0)
     1392                {
     1393                    CHECK_ERROR_RET(nic, COMSETTER(Enabled) (TRUE), 1);
     1394                    CHECK_ERROR_RET(nic, AttachToHostOnlyNetwork(), 1);
     1395                }
     1396#endif /* RT_OS_LINUX */
    13901397                else
    13911398                {
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxGlobal.cpp

    r16469 r16509  
    34213421    mNetworkAttachmentTypes [KNetworkAttachmentType_Internal] =
    34223422        tr ("Internal Network", "NetworkAttachmentType");
     3423    mNetworkAttachmentTypes [KNetworkAttachmentType_HostOnly] =
     3424        tr ("Host-only Network", "NetworkAttachmentType");
    34233425
    34243426    mClipboardTypes [KClipboardMode_Disabled] =
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxVMSettingsNetwork.cpp

    r16112 r16509  
    143143        case KNetworkAttachmentType_Internal:
    144144            mAdapter.AttachToInternalNetwork();
     145            break;
     146        case KNetworkAttachmentType_HostOnly:
     147            mAdapter.AttachToHostOnlyNetwork();
    145148            break;
    146149        default:
     
    352355    mCbNAType->setItemData (3,
    353356        mCbNAType->itemText(3), Qt::ToolTipRole);
     357#ifdef RT_OS_LINUX
     358    mCbNAType->insertItem (4,
     359        vboxGlobal().toString (KNetworkAttachmentType_HostOnly));
     360    mCbNAType->setItemData (4,
     361        mCbNAType->itemText(4), Qt::ToolTipRole);
     362#endif /* RT_OS_LINUX */
    354363    /* Set the old value */
    355364    mCbNAType->setCurrentIndex (currentAttachment);
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette