VirtualBox

Changeset 18023 in vbox for trunk/src/VBox/Devices/Network


Ignore:
Timestamp:
Mar 17, 2009 1:48:59 PM (16 years ago)
Author:
vboxsync
Message:

Dhcp->DHCP

Location:
trunk/src/VBox/Devices/Network
Files:
1 edited
2 moved

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/DHCPServerRunner.cpp

    r18012 r18023  
    1919 * additional information or have any questions.
    2020 */
    21 #include "DhcpServerRunner.h"
     21#include "DHCPServerRunner.h"
    2222#include <iprt/process.h>
    2323#include <iprt/param.h>
     
    3737
    3838static const ARGDEF g_aArgDefs[] = {
    39         {DHCPCFG_NAME, "--name "},
    40         {DHCPCFG_NETNAME, "--network "},
    41         {DHCPCFG_TRUNKTYPE, "--trunk-type "},
    42         {DHCPCFG_TRUNKNAME, "--trunk-name "},
    43         {DHCPCFG_MACADDRESS, "--mac-address "},
    44         {DHCPCFG_IPADDRESS, "--ip-address "},
     39        {DHCPCFG_NAME, "--name"},
     40        {DHCPCFG_NETNAME, "--network"},
     41        {DHCPCFG_TRUNKTYPE, "--trunk-type"},
     42        {DHCPCFG_TRUNKNAME, "--trunk-name"},
     43        {DHCPCFG_MACADDRESS, "--mac-address"},
     44        {DHCPCFG_IPADDRESS, "--ip-address"},
    4545        {DHCPCFG_LEASEDB, "--lease-db"},
    4646        {DHCPCFG_VERBOSE, "--verbose"},
    4747        {DHCPCFG_BEGINCONFIG, "--begin-config"},
    48         {DHCPCFG_GATEWAY, "--gateway "},
    49         {DHCPCFG_LOWERIP, "--lower-ip "},
    50         {DHCPCFG_UPPERIP, "--upper-ip "},
    51         {DHCPCFG_NETMASK, "--netmask "},
     48        {DHCPCFG_GATEWAY, "--gateway"},
     49        {DHCPCFG_LOWERIP, "--lower-ip"},
     50        {DHCPCFG_UPPERIP, "--upper-ip"},
     51        {DHCPCFG_NETMASK, "--netmask"},
    5252        {DHCPCFG_HELP, "--help"},
    5353        {DHCPCFG_VERSION, "--version"}
     
    6666}
    6767
    68 void DhcpServerRunner::detachFromServer()
     68void DHCPServerRunner::detachFromServer()
    6969{
    7070    mProcess = NIL_RTPROCESS;
    7171}
    7272
    73 int DhcpServerRunner::start()
     73int DHCPServerRunner::start()
    7474{
    7575    if(isRunning())
     
    123123}
    124124
    125 int DhcpServerRunner::stop()
     125int DHCPServerRunner::stop()
    126126{
    127127    if(!isRunning())
     
    133133}
    134134
    135 bool DhcpServerRunner::isRunning()
     135bool DHCPServerRunner::isRunning()
    136136{
    137137    if(mProcess == NIL_RTPROCESS)
  • trunk/src/VBox/Devices/Network/DHCPServerRunner.h

    r18012 r18023  
    294294};
    295295
    296 class DhcpServerRunner
     296class DHCPServerRunner
    297297{
    298298public:
    299     DhcpServerRunner() : mProcess (NIL_RTPROCESS) {}
    300     ~DhcpServerRunner() { stop(); /* don't leave abandoned servers */}
     299    DHCPServerRunner() : mProcess (NIL_RTPROCESS) {}
     300    ~DHCPServerRunner() { stop(); /* don't leave abandoned servers */}
    301301
    302302    int setOption(DHCPCFG opt, const char *val)
  • trunk/src/VBox/Devices/Network/DrvIntNet.cpp

    r17995 r18023  
    4545#endif
    4646
    47 #include "DhcpServerRunner.h"
     47#include "DHCPServerRunner.h"
    4848
    4949/*******************************************************************************
     
    11021102
    11031103
    1104             DhcpServerRunner dhcp;
     1104            DHCPServerRunner dhcp;
    11051105            dhcp.setOption(DHCPCFG_NETNAME, OpenReq.szNetwork);
    11061106            dhcp.setOption(DHCPCFG_TRUNKNAME, OpenReq.szTrunk);
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