Changeset 21860 in vbox for trunk/src/VBox/Main/DHCPServerRunner.cpp
- Timestamp:
- Jul 29, 2009 9:39:25 AM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 50496
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/DHCPServerRunner.cpp
r21404 r21860 64 64 } 65 65 66 DHCPServerRunner::DHCPServerRunner() 67 { 68 mProcess = NIL_RTPROCESS; 69 for (unsigned i = 0; i < DHCPCFG_NOTOPT_MAXVAL; i++) 70 { 71 mOptionEnabled[i] = false; 72 } 73 } 74 66 75 void DHCPServerRunner::detachFromServer() 67 76 { … … 97 106 for (unsigned i = 0; i < DHCPCFG_NOTOPT_MAXVAL; i++) 98 107 { 99 if (mOption s[i].length())108 if (mOptionEnabled[i]) 100 109 { 101 110 const ARGDEF * pArgDef = getArgDef((DHCPCFG)i); 102 111 args[index++] = pArgDef->Name; // e.g. "--network" 103 args[index++] = mOptions[i].raw(); // value 112 113 /* value can be null for e.g. --begin-config has no value 114 * and thus check the mOptions string length here 115 */ 116 if (mOptions[i].length()) 117 args[index++] = mOptions[i].raw(); // value 104 118 } 105 119 }
Note:
See TracChangeset
for help on using the changeset viewer.