VirtualBox

Ignore:
Timestamp:
Apr 16, 2010 10:45:18 AM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
60170
Message:

Devices, Main, FE/Qt: re-committed support for VDE virtual network switches for Linux and FreeBSD hosts. Contributed by Renzo Davoli, VirtualSquare, University of Bologna

Location:
trunk/src/VBox/Frontends/VirtualBox
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/Makefile.kmk

    r27726 r28406  
    190190        $(if $(VBOX_WITH_SOLARIS_OSS),VBOX_WITH_SOLARIS_OSS) \
    191191        $(if $(VBOX_WITH_E1000),VBOX_WITH_E1000) \
    192         $(if $(VBOX_WITH_NETFLT)$(eq $(KBUILD_TARGET),freebsd),VBOX_WITH_NETFLT)
     192        $(if $(VBOX_WITH_NETFLT)$(eq $(KBUILD_TARGET),freebsd),VBOX_WITH_NETFLT) \
     193        $(if $(VBOX_WITH_VDE),VBOX_WITH_VDE)
    193194ifdef VBOX_WITH_DEBUGGER_GUI
    194195 VirtualBox_DEFS        += VBOX_WITH_DEBUGGER_GUI
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.cpp

    r28294 r28406  
    21552155                    attType = attType.arg (tr ("Host-only adapter, '%1'",
    21562156                        "details report (network)").arg (adapter.GetHostInterface()));
     2157#ifdef VBOX_WITH_VDE
     2158                else if (type == KNetworkAttachmentType_VDE)
     2159                    attType = attType.arg (tr ("VDE network, '%1'",
     2160                        "details report (network)").arg (adapter.GetVDENetwork()));
     2161#endif
    21572162                else
    21582163                    attType = attType.arg (vboxGlobal().toString (type));
     
    31133118    mNetworkAttachmentTypes [KNetworkAttachmentType_HostOnly] =
    31143119        tr ("Host-only Adapter", "NetworkAttachmentType");
     3120#ifdef VBOX_WITH_VDE
     3121    mNetworkAttachmentTypes [KNetworkAttachmentType_VDE] =
     3122        tr ("VDE Adapter", "NetworkAttachmentType");
     3123#endif
    31153124
    31163125    mClipboardTypes [KClipboardMode_Disabled] =
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/vm/VBoxVMSettingsNetwork.cpp

    r28290 r28406  
    77
    88/*
    9  * Copyright (C) 2008 Sun Microsystems, Inc.
     9 * Copyright (C) 2008-2010 Sun Microsystems, Inc.
    1010 *
    1111 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    105105            if (mHoiName.isEmpty()) mHoiName = QString::null;
    106106            break;
     107#ifdef VBOX_WITH_VDE
     108        case KNetworkAttachmentType_VDE:
     109            mVDEName = mAdapter.GetVDENetwork();
     110            if (mVDEName.isEmpty()) mVDEName = QString::null;
     111            break;
     112#endif
    107113        default:
    108114            break;
     
    145151            mAdapter.AttachToHostOnlyInterface();
    146152            break;
     153#ifdef VBOX_WITH_VDE
     154        case KNetworkAttachmentType_VDE:
     155            mAdapter.SetVDENetwork (alternativeName());
     156            mAdapter.AttachToVDE();
     157            break;
     158#endif
    147159        default:
    148160            break;
     
    257269            result = mHoiName;
    258270            break;
     271#ifdef VBOX_WITH_VDE
     272        case KNetworkAttachmentType_VDE:
     273            result = mVDEName;
     274            break;
     275#endif
    259276        default:
    260277            break;
     
    333350            mCbAdapterName->setEditable (false);
    334351            break;
     352#ifdef VBOX_WITH_VDE
     353        case KNetworkAttachmentType_VDE:
     354            mCbAdapterName->insertItem(0, alternativeName());
     355            mCbAdapterName->setEditable (true);
     356            mCbAdapterName->setCompleter (0);
     357            break;
     358#endif
    335359        default:
    336360            break;
     
    432456            break;
    433457        }
     458#ifdef VBOX_WITH_VDE
     459        case KNetworkAttachmentType_VDE:
     460        {
     461            QString newName ((mCbAdapterName->itemData (mCbAdapterName->currentIndex()).toString() ==
     462                              QString (emptyItemCode) &&
     463                              mCbAdapterName->currentText() ==
     464                              mCbAdapterName->itemText (mCbAdapterName->currentIndex())) ||
     465                              mCbAdapterName->currentText().isEmpty() ?
     466                              QString::null : mCbAdapterName->currentText());
     467            if (mVDEName != newName)
     468                mVDEName = newName;
     469            break;
     470        }
     471#endif
    434472        default:
    435473            break;
     
    548586    mCbAttachmentType->setItemData (4,
    549587        mCbAttachmentType->itemText (4), Qt::ToolTipRole);
     588#ifdef VBOX_WITH_VDE
     589    mCbAttachmentType->insertItem (5,
     590        vboxGlobal().toString (KNetworkAttachmentType_VDE));
     591    mCbAttachmentType->setItemData (5,
     592        KNetworkAttachmentType_VDE);
     593    mCbAttachmentType->setItemData (5,
     594        mCbAttachmentType->itemText (5), Qt::ToolTipRole);
     595#endif
    550596
    551597    /* Set the old value */
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/vm/VBoxVMSettingsNetwork.h

    r28290 r28406  
    66
    77/*
    8  * Copyright (C) 2008 Sun Microsystems, Inc.
     8 * Copyright (C) 2008-2010 Sun Microsystems, Inc.
    99 *
    1010 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    7777    QString mIntName;
    7878    QString mHoiName;
     79#ifdef VBOX_WITH_VDE
     80    QString mVDEName;
     81#endif
    7982
    8083    bool mPolished;
     
    9396    QStringList intList (bool aRefresh = false);
    9497    QStringList hoiList (bool aRefresh = false);
     98#ifdef VBOX_WITH_VDE
     99    QStringList vdeList (bool aRefresh = false);
     100#endif
    95101
    96102protected:
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