VirtualBox

Changeset 10451 in vbox for trunk/include


Ignore:
Timestamp:
Jul 9, 2008 9:57:49 PM (17 years ago)
Author:
vboxsync
Message:

Modified the INTNETR0Open interface and PDM driver configuration to take a trunk connection type and name. Also, changed the fRestrictAccess into a generic flag argument (CFGM value unchanged).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/intnet.h

    r10169 r10451  
    587587
    588588
     589/**
     590 * The trunk connection type.
     591 *
     592 * Used by INTNETR0Open and assoicated interfaces.
     593 */
     594typedef enum INTNETTRUNKTYPE
     595{
     596    /** Invalid trunk type. */
     597    kIntNetTrunkType_Invalid = 0,
     598    /** No trunk connection. */
     599    kIntNetTrunkType_None,
     600    /** We don't care which kind of trunk connection if the network exists,
     601     * if it doesn't exist create it without a connection. */
     602    kIntNetTrunkType_WhateverNone,
     603    /** VirtualBox host network interface filter driver.
     604     * The trunk name is the name of the host network interface. */
     605    kIntNetTrunkType_NetFlt,
     606    /** VirtualBox TAP host driver. */
     607    kIntNetTrunkType_NetTap,
     608    /** Nat service (ring-0). */
     609    kIntNetTrunkType_SrvNat,
     610    /** The end of valid types. */
     611    kIntNetTrunkType_End,
     612    /** The usual 32-bit hack. */
     613    kIntNetTrunkType_32bitHack = 0x7fffffff
     614} INTNETTRUNKTYPE;
     615
     616/** @name INTNETR0Open flags.
     617 * @{ */
     618/** Whether new participants should be subjected to access check or not. */
     619#define INTNET_OPEN_FLAGS_PUBLIC    RT_BIT_32(1)
     620/** @} */
     621
    589622/** The maximum length of a network name. */
    590623#define INTNET_MAX_NETWORK_NAME     128
     624
     625/** The maximum length of a trunk name. */
     626#define INTNET_MAX_TRUNK_NAME       64
    591627
    592628
     
    601637    /** The network name. (input) */
    602638    char            szNetwork[INTNET_MAX_NETWORK_NAME];
     639    /** What to connect to the trunk port. (input)
     640     * This is specific to the trunk type below. */
     641    char            szTrunk[INTNET_MAX_TRUNK_NAME];
     642    /** The type of trunk link (NAT, Filter, TAP, etc). (input) */
     643    INTNETTRUNKTYPE enmTrunkType;
     644    /** Flags, see INTNET_OPEN_FLAGS_*. (input) */
     645    uint32_t        fFlags;
    603646    /** The size of the send buffer. (input) */
    604647    uint32_t        cbSend;
    605648    /** The size of the receive buffer. (input) */
    606649    uint32_t        cbRecv;
    607     /** Whether new participants should be subjected to access check or not. */
    608     bool            fRestrictAccess;
    609650    /** The handle to the network interface. (output) */
    610651    INTNETIFHANDLE  hIf;
     
    734775 * @param   pSession        The session handle.
    735776 * @param   pszNetwork      The network name.
     777 * @param   enmTrunkType    The trunk type.
     778 * @param   pszTrunk        The trunk name. Its meaning is specfic to the type.
     779 * @param   fFlags          Flags, see INTNET_OPEN_FLAGS_*.
     780 * @param   fRestrictAccess Whether new participants should be subjected to access check or not.
    736781 * @param   cbSend          The send buffer size.
    737782 * @param   cbRecv          The receive buffer size.
    738  * @param   fRestrictAccess Whether new participants should be subjected to access check or not.
    739783 * @param   phIf            Where to store the handle to the network interface.
    740784 */
    741 INTNETR0DECL(int) INTNETR0Open(PINTNET pIntNet, PSUPDRVSESSION pSession, const char *pszNetwork, unsigned cbSend, unsigned cbRecv, bool fRestrictAccess, PINTNETIFHANDLE phIf);
     785INTNETR0DECL(int) INTNETR0Open(PINTNET pIntNet, PSUPDRVSESSION pSession, const char *pszNetwork,
     786                               INTNETTRUNKTYPE enmTrunkType, const char *pszTrunk, uint32_t fFlags,
     787                               unsigned cbSend, unsigned cbRecv, PINTNETIFHANDLE phIf);
    742788
    743789/**
Note: See TracChangeset for help on using the changeset viewer.

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