Changeset 35785 in vbox for trunk/src/VBox/Main/src-server/generic
- Timestamp:
- Jan 31, 2011 12:45:37 PM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 69756
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/generic/NetIf-generic.cpp
r32718 r35785 127 127 128 128 129 int NetIfCreateHostOnlyNetworkInterface(VirtualBox *pVBox, IHostNetworkInterface **aHostNetworkInterface, IProgress **aProgress) 129 int NetIfCreateHostOnlyNetworkInterface(VirtualBox *pVBox, 130 IHostNetworkInterface **aHostNetworkInterface, 131 IProgress **aProgress, 132 const char *pcszName) 130 133 { 131 134 #if defined(RT_OS_LINUX) || defined(RT_OS_DARWIN) || defined(RT_OS_FREEBSD) … … 155 158 return rc; 156 159 } 157 strcat(szAdpCtl, "/" VBOXNETADPCTL_NAME " add"); 160 strcat(szAdpCtl, "/" VBOXNETADPCTL_NAME " "); 161 if (pcszName && strlen(pcszName) <= RTPATH_MAX - strlen(szAdpCtl) - sizeof(" add")) 162 { 163 strcat(szAdpCtl, pcszName); 164 strcat(szAdpCtl, " add"); 165 } 166 else 167 strcat(szAdpCtl, "add"); 158 168 FILE *fp = popen(szAdpCtl, "r"); 159 169
Note:
See TracChangeset
for help on using the changeset viewer.