VirtualBox

Changeset 17812 in vbox


Ignore:
Timestamp:
Mar 13, 2009 12:15:11 PM (16 years ago)
Author:
vboxsync
Message:

VboxNetDHCP: added --lease-db option.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/NetworkServices/DHCP/VBoxNetDHCP.cpp

    r17786 r17812  
    398398    RTMAC               m_MacAddress;
    399399    RTNETADDRIPV4       m_Ipv4Address;
     400    std::string         m_LeaseDBName;
    400401    /** @} */
    401402
     
    529530    memset(&m_CurHdrs, '\0', sizeof(m_CurHdrs));
    530531
    531 #if 1 /* while hacking. */
     532#if 0 /* enable to hack the code without a mile long argument list. */
    532533    VBoxNetDhcpCfg *pDefCfg = new VBoxNetDhcpCfg();
    533534    pDefCfg->m_LowerAddr.u    = RT_H2N_U32_C(RT_BSWAP_U32_C(RT_MAKE_U32_FROM_U8( 10,  0,  2,100)));
     
    690691        { "--mac-address",    'a',   RTGETOPT_REQ_MACADDR },
    691692        { "--ip-address",     'i',   RTGETOPT_REQ_IPV4ADDR },
     693        { "--lease-db",       'D',   RTGETOPT_REQ_STRING },
    692694        { "--verbose",        'v',   RTGETOPT_REQ_NOTHING },
    693695
     
    726728            case 'i':
    727729                m_Ipv4Address = Val.IPv4Addr;
     730                break;
     731            case 'd':
     732                m_LeaseDBName = Val.psz;
    728733                break;
    729734
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