Lines Matching refs:pszName
47 * @param pszName The buffer of IFNAMSIZ+1 length where to put the name.
49 static int getDefaultIfaceName(char *pszName)
73 strncpy(pszName, szIfName, 16);
74 pszName[16] = 0;
83 static uint32_t getInterfaceSpeed(const char *pszName)
92 RTStrPrintf(szBuf, sizeof(szBuf), "/sys/class/net/%s/speed", pszName);
104 RTStrPrintf(szBuf, sizeof(szBuf), "/sys/class/net/%s/carrier", pszName);
117 int rc = NetIfAdpCtlOut(pszName, "speed", szBuf, sizeof(szBuf));
124 static int getInterfaceInfo(int iSocket, const char *pszName, PNETIFINFO pInfo)
131 RTStrCopy(Req.ifr_name, sizeof(Req.ifr_name), pszName);
206 pInfo->uSpeedMbits = getInterfaceSpeed(pszName);
236 char *pszName = buf+iFirstNonWS;
239 rc = getInterfaceInfo(sock, pszName, &Info);
248 if (strncmp(pszName, RT_STR_TUPLE("vboxnet")))
253 if (SUCCEEDED(IfObj->init(Bstr(pszName), enmType, &Info)))
255 if (strcmp(pszName, szDefaultIface) == 0)