VirtualBox

Changeset 55652 in vbox for trunk/include


Ignore:
Timestamp:
May 5, 2015 3:28:45 AM (10 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
100033
Message:

IntNet/NetFlt: blacklist host's L3 addresses when bridging to wifi. Implemented on Linux and OS X for now.

File:
1 edited

Legend:

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

    r52592 r55652  
    387387
    388388
     389/**
     390 * Network layer address type.
     391 */
     392typedef enum INTNETADDRTYPE
     393{
     394    /** The invalid 0 entry. */
     395    kIntNetAddrType_Invalid = 0,
     396    /** IP version 4. */
     397    kIntNetAddrType_IPv4,
     398    /** IP version 6. */
     399    kIntNetAddrType_IPv6,
     400    /** IPX. */
     401    kIntNetAddrType_IPX,
     402    /** The end of the valid values. */
     403    kIntNetAddrType_End,
     404    /** The usual 32-bit hack. */
     405    kIntNetAddrType_32BitHack = 0x7fffffff
     406} INTNETADDRTYPE;
     407
     408
    389409/** Pointer to the interface side of a trunk port. */
    390410typedef struct INTNETTRUNKIFPORT *PINTNETTRUNKIFPORT;
     
    577597
    578598    /**
     599     * Notifications about changes to host IP addresses.
     600     *
     601     * This is used by networks bridged to wifi that share mac with
     602     * the host.  Host reports changes to its IP addresses so that L3
     603     * switching can ingore guests spoofing host's own IP addresses
     604     *
     605     * This callback may be null to indicate we are not interested.
     606     *
     607     * @param   pSwitchPort         Pointer to this structure.
     608     * @param   fAdded              Whether address is added of removed.
     609     * @param   enmType             Address type.
     610     * @param   pvAddr              Pointer to the address.
     611     */
     612    DECLR0CALLBACKMEMBER(void, pfnNotifyHostAddress,(PINTNETTRUNKSWPORT pSwitchPort, bool fAdded,
     613                                                     INTNETADDRTYPE enmType, const void *pvAddr));
     614
     615    /**
    579616     * OS triggered trunk disconnect.
    580617     *
     
    603640
    604641/** Version number for the INTNETTRUNKIFPORT::u32Version and INTNETTRUNKIFPORT::u32VersionEnd fields. */
    605 # define INTNETTRUNKSWPORT_VERSION   UINT32_C(0xA2CDf003)
     642# define INTNETTRUNKSWPORT_VERSION   UINT32_C(0xA2CDf004)
    606643
    607644
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