Changeset 18023 in vbox for trunk/src/VBox/Devices/Network
- Timestamp:
- Mar 17, 2009 1:48:59 PM (16 years ago)
- Location:
- trunk/src/VBox/Devices/Network
- Files:
-
- 1 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/DHCPServerRunner.cpp
r18012 r18023 19 19 * additional information or have any questions. 20 20 */ 21 #include "D hcpServerRunner.h"21 #include "DHCPServerRunner.h" 22 22 #include <iprt/process.h> 23 23 #include <iprt/param.h> … … 37 37 38 38 static 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"}, 45 45 {DHCPCFG_LEASEDB, "--lease-db"}, 46 46 {DHCPCFG_VERBOSE, "--verbose"}, 47 47 {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"}, 52 52 {DHCPCFG_HELP, "--help"}, 53 53 {DHCPCFG_VERSION, "--version"} … … 66 66 } 67 67 68 void D hcpServerRunner::detachFromServer()68 void DHCPServerRunner::detachFromServer() 69 69 { 70 70 mProcess = NIL_RTPROCESS; 71 71 } 72 72 73 int D hcpServerRunner::start()73 int DHCPServerRunner::start() 74 74 { 75 75 if(isRunning()) … … 123 123 } 124 124 125 int D hcpServerRunner::stop()125 int DHCPServerRunner::stop() 126 126 { 127 127 if(!isRunning()) … … 133 133 } 134 134 135 bool D hcpServerRunner::isRunning()135 bool DHCPServerRunner::isRunning() 136 136 { 137 137 if(mProcess == NIL_RTPROCESS) -
trunk/src/VBox/Devices/Network/DHCPServerRunner.h
r18012 r18023 294 294 }; 295 295 296 class D hcpServerRunner296 class DHCPServerRunner 297 297 { 298 298 public: 299 D hcpServerRunner() : mProcess (NIL_RTPROCESS) {}300 ~D hcpServerRunner() { stop(); /* don't leave abandoned servers */}299 DHCPServerRunner() : mProcess (NIL_RTPROCESS) {} 300 ~DHCPServerRunner() { stop(); /* don't leave abandoned servers */} 301 301 302 302 int setOption(DHCPCFG opt, const char *val) -
trunk/src/VBox/Devices/Network/DrvIntNet.cpp
r17995 r18023 45 45 #endif 46 46 47 #include "D hcpServerRunner.h"47 #include "DHCPServerRunner.h" 48 48 49 49 /******************************************************************************* … … 1102 1102 1103 1103 1104 D hcpServerRunner dhcp;1104 DHCPServerRunner dhcp; 1105 1105 dhcp.setOption(DHCPCFG_NETNAME, OpenReq.szNetwork); 1106 1106 dhcp.setOption(DHCPCFG_TRUNKNAME, OpenReq.szTrunk);
Note:
See TracChangeset
for help on using the changeset viewer.