Changeset 65428 in vbox for trunk/src/VBox/Main
- Timestamp:
- Jan 24, 2017 3:32:55 PM (8 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/netif.h
r63256 r65428 93 93 int NetIfGetConfig(HostNetworkInterface * pIf, NETIFINFO *); 94 94 int NetIfGetConfigByName(PNETIFINFO pInfo); 95 int NetIfGetState(const char *p szIfName, NETIFSTATUS *penmState);96 int NetIfGetLinkSpeed(const char *p szIfName, uint32_t *puMbits);95 int NetIfGetState(const char *pcszIfName, NETIFSTATUS *penmState); 96 int NetIfGetLinkSpeed(const char *pcszIfName, uint32_t *puMbits); 97 97 int NetIfDhcpRediscover(VirtualBox *pVBox, HostNetworkInterface * pIf); 98 98 int NetIfAdpCtlOut(const char *pszName, const char *pszCmd, char *pszBuffer, size_t cBufSize); … … 153 153 /* Get the index from the name */ 154 154 Utf8Str strTmp = bstrIfName; 155 const char *p szIfName = strTmp.c_str();155 const char *pcszIfName = strTmp.c_str(); 156 156 int iInstance = 0; 157 size_t iPos = strcspn(p szIfName, "0123456789");158 if (p szIfName[iPos])159 iInstance = RTStrToUInt32(p szIfName + iPos);157 size_t iPos = strcspn(pcszIfName, "0123456789"); 158 if (pcszIfName[iPos]) 159 iInstance = RTStrToUInt32(pcszIfName + iPos); 160 160 161 161 in_addr tmp; -
trunk/src/VBox/Main/src-server/win/NetIf-win.cpp
r63563 r65428 1112 1112 * @returns VBox status code. 1113 1113 * 1114 * @param p szIfNameInterface name.1114 * @param pcszIfName Interface name. 1115 1115 * @param penmState Where to store the retrieved state. 1116 1116 */ 1117 int NetIfGetState(const char *p szIfName, NETIFSTATUS *penmState)1118 { 1119 RT_NOREF(p szIfName, penmState);1117 int NetIfGetState(const char *pcszIfName, NETIFSTATUS *penmState) 1118 { 1119 RT_NOREF(pcszIfName, penmState); 1120 1120 return VERR_NOT_IMPLEMENTED; 1121 1121 } … … 1127 1127 * @returns VBox status code. 1128 1128 * 1129 * @param p szIfName Interface name.1129 * @param pcszIfName Interface name. 1130 1130 * @param puMbits Where to store the link speed. 1131 1131 */ 1132 int NetIfGetLinkSpeed(const char *p szIfName, uint32_t *puMbits)1133 { 1134 RT_NOREF(p szIfName, puMbits);1132 int NetIfGetLinkSpeed(const char *pcszIfName, uint32_t *puMbits) 1133 { 1134 RT_NOREF(pcszIfName, puMbits); 1135 1135 return VERR_NOT_IMPLEMENTED; 1136 1136 }
Note:
See TracChangeset
for help on using the changeset viewer.