Changeset 11072 in vbox for trunk/include
- Timestamp:
- Aug 1, 2008 10:24:51 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/intnet.h
r11062 r11072 272 272 * @{ */ 273 273 /** Set if the SG is free. */ 274 #define INTNETSG_FLAGS_FREE RT_BIT_32(1)274 #define INTNETSG_FLAGS_FREE RT_BIT_32(1) 275 275 /** Set if the SG is a temporary one that will become invalid upon return. 276 276 * Try to finish using it before returning, and if that's not possible copy … … 278 278 * When not set, the callee should always free the SG. 279 279 * Attempts to free it made by the callee will be quietly ignored. */ 280 #define INTNETSG_FLAGS_TEMP RT_BIT_32(2) 280 #define INTNETSG_FLAGS_TEMP RT_BIT_32(2) 281 /** ARP packet, IPv4 + MAC. 282 * @internal */ 283 #define INTNETSG_FLAGS_ARP_IPV4 RT_BIT_32(3) 284 /** Copied to the temporary buffer. 285 * @internal */ 286 #define INTNETSG_FLAGS_PKT_CP_IN_TMP RT_BIT_32(4) 281 287 /** @} */ 282 288 … … 288 294 /** To/From the host. */ 289 295 #define INTNETTRUNKDIR_HOST RT_BIT_32(1) 290 /** To the wire but with RTNETETHERHDR::SrcMac set to the host interface MAC address. */291 #define INTNETTRUNKDIR_WIRE_SHARED RT_BIT_32(2)292 296 /** Mask of valid bits. */ 293 #define INTNETTRUNKDIR_VALID_MASK UINT32_C( 0x7)297 #define INTNETTRUNKDIR_VALID_MASK UINT32_C(3) 294 298 /** @} */ 295 299 … … 472 476 473 477 /** 478 * Gets the MAC address of the host network interface that we're attached to. 479 * 480 * @param pIfPort Pointer to this structure. 481 * @param pMac Where to store the host MAC address. 482 * 483 * @remarks Called while owning the network and the out-bound trunk port semaphores. 484 */ 485 DECLR0CALLBACKMEMBER(void, pfnGetMacAddress,(PINTNETTRUNKIFPORT pIfPort, PPDMMAC pMac)); 486 487 /** 474 488 * Tests if the mac address belongs to any of the host NICs 475 489 * and should take the host route. … … 484 498 * @remarks TAP and NAT will compare with their own MAC address and let all their 485 499 * traffic take the host direction. 500 * 501 * @remarks This didn't quiet work out the way it should... perhaps obsolete this 502 * with pfnGetHostMac? 486 503 */ 487 504 DECLR0CALLBACKMEMBER(bool, pfnIsHostMac,(PINTNETTRUNKIFPORT pIfPort, PCPDMMAC pMac)); … … 575 592 typedef INTNETTRUNKFACTORY *PINTNETTRUNKFACTORY; 576 593 577 /** The UUID for the (current) trunk factory */578 #define INTNETTRUNKFACTORY_UUID_STR " c913a8e4-8593-41cd-ae73-f8d7701b08fb"594 /** The UUID for the (current) trunk factory. (case sensitive) */ 595 #define INTNETTRUNKFACTORY_UUID_STR "ae8fcb95-280c-42f4-a8f1-09f84e3bdab3" 579 596 580 597
Note:
See TracChangeset
for help on using the changeset viewer.