Changeset 10451 in vbox for trunk/include
- Timestamp:
- Jul 9, 2008 9:57:49 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/intnet.h
r10169 r10451 587 587 588 588 589 /** 590 * The trunk connection type. 591 * 592 * Used by INTNETR0Open and assoicated interfaces. 593 */ 594 typedef 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 589 622 /** The maximum length of a network name. */ 590 623 #define INTNET_MAX_NETWORK_NAME 128 624 625 /** The maximum length of a trunk name. */ 626 #define INTNET_MAX_TRUNK_NAME 64 591 627 592 628 … … 601 637 /** The network name. (input) */ 602 638 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; 603 646 /** The size of the send buffer. (input) */ 604 647 uint32_t cbSend; 605 648 /** The size of the receive buffer. (input) */ 606 649 uint32_t cbRecv; 607 /** Whether new participants should be subjected to access check or not. */608 bool fRestrictAccess;609 650 /** The handle to the network interface. (output) */ 610 651 INTNETIFHANDLE hIf; … … 734 775 * @param pSession The session handle. 735 776 * @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. 736 781 * @param cbSend The send buffer size. 737 782 * @param cbRecv The receive buffer size. 738 * @param fRestrictAccess Whether new participants should be subjected to access check or not.739 783 * @param phIf Where to store the handle to the network interface. 740 784 */ 741 INTNETR0DECL(int) INTNETR0Open(PINTNET pIntNet, PSUPDRVSESSION pSession, const char *pszNetwork, unsigned cbSend, unsigned cbRecv, bool fRestrictAccess, PINTNETIFHANDLE phIf); 785 INTNETR0DECL(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); 742 788 743 789 /**
Note:
See TracChangeset
for help on using the changeset viewer.