VirtualBox

Changeset 79747 in vbox for trunk/include


Ignore:
Timestamp:
Jul 12, 2019 11:00:54 PM (6 years ago)
Author:
vboxsync
Message:

Main: Redoing the IDHCPServer interface, part II. Implemented groups and fixed a couple of bugs. Made RTNetStrToMacAddr understand hexstrings w/o colon separators. bugref:9288

File:
1 edited

Legend:

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

    r79732 r79747  
    349349typedef DhcpOptionMap::const_iterator DhcpOptConstIterator;
    350350
     351struct DHCPGroupCondition
     352{
     353    DHCPGroupCondition();
     354
     355    bool                    fInclusive;
     356    DHCPGroupConditionType_T enmType;
     357    com::Utf8Str            strValue;
     358};
     359typedef std::vector<DHCPGroupCondition> DHCPGroupConditionVec;
     360
     361
    351362struct DHCPConfig
    352363{
    353364    DHCPConfig();
    354365
    355     DhcpOptionMap           OptionMap;
     366    DhcpOptionMap           mapOptions;
    356367    uint32_t                secMinLeaseTime;
    357368    uint32_t                secDefaultLeaseTime;
     
    359370};
    360371
     372struct DHCPGroupConfig : DHCPConfig
     373{
     374    DHCPGroupConfig();
     375
     376    com::Utf8Str            strName;
     377    DHCPGroupConditionVec   vecConditions;
     378};
     379typedef std::vector<DHCPGroupConfig> DHCPGroupConfigVec;
     380
    361381struct DHCPIndividualConfig : DHCPConfig
    362382{
     
    365385    com::Utf8Str            strMACAddress;
    366386    com::Utf8Str            strVMName;
    367     ULONG                   uSlot;
     387    uint32_t                uSlot;
    368388    com::Utf8Str            strFixedAddress;
    369389};
    370 
    371390typedef std::map<com::Utf8Str, DHCPIndividualConfig> DHCPIndividualConfigMap;
    372391
     
    380399    com::Utf8Str            strIPUpper;
    381400    bool                    fEnabled;
    382     DHCPConfig              GlobalConfig;
    383     DHCPIndividualConfigMap IndividualConfigs;
    384 };
    385 
     401    DHCPConfig              globalConfig;
     402    DHCPGroupConfigVec      vecGroupConfigs;
     403    DHCPIndividualConfigMap mapIndividualConfigs;
     404};
    386405typedef std::list<DHCPServer> DHCPServersList;
    387406
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