VirtualBox

Changeset 13690 in vbox


Ignore:
Timestamp:
Oct 30, 2008 9:09:50 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
38654
Message:

VBoxNetFlt: Early draft of Linux hostif, nothing is working yet

Location:
trunk/src/VBox
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/VBoxNetFlt/VBoxNetFltInternal.h

    r13654 r13690  
    149149            /** Pointer to the device. */
    150150            struct net_device volatile *pDev;
     151            struct packet_type volatile *pPacketType;
     152            struct notifier_block *pNotifier;
     153            /** Whether we've need to set promiscuous mode when the interface comes up. */
     154            bool volatile fNeedSetPromiscuous;
     155            /** Whether we've successfully put the interface into to promiscuous mode.
     156             * This is for dealing with the ENETDOWN case. */
     157            bool volatile fSetPromiscuous;
     158            /** The MAC address of the interface. */
     159            RTMAC Mac;
    151160            /** @} */
    152161# elif defined(RT_OS_SOLARIS)
  • trunk/src/VBox/Main/ConsoleImpl.cpp

    r13580 r13690  
    58185818HRESULT Console::attachToHostInterface(INetworkAdapter *networkAdapter)
    58195819{
    5820 #if !defined(RT_OS_LINUX)
     5820//#if !defined(RT_OS_LINUX)
     5821#if 1
    58215822    /*
    58225823     * Nothing to do here.
     
    60056006HRESULT Console::detachFromHostInterface(INetworkAdapter *networkAdapter)
    60066007{
    6007 #if !defined(RT_OS_LINUX)
     6008//#if !defined(RT_OS_LINUX)
     6009#if 1
    60086010
    60096011    /*
  • trunk/src/VBox/Main/ConsoleImpl2.cpp

    r13657 r13690  
    12091209                    strcpy(szDriverGUID , hostIFGuid.toString().raw());
    12101210                    const char *pszTrunk = szDriverGUID;
     1211# elif defined(RT_OS_LINUX)
     1212                    /* @todo Check for malformed names. */
     1213                    const char *pszTrunk = pszHifName;
     1214
    12111215# else
    12121216#  error "PORTME (VBOX_WITH_NETFLT)"
     
    12841288                        rc = CFGMR3InsertBytes(pCfg, "GUID", szDriverGUID, sizeof(szDriverGUID));       RC_CHECK();
    12851289                    }
     1290#elif defined(RT_OS_LINUX)
     1291/// @todo aleksey: is there anything to be done here?
    12861292#else
    12871293# error "Port me"
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