Lines Matching refs:pInfo
124 static int getInterfaceInfo(int iSocket, const char *pszName, PNETIFINFO pInfo)
126 // Zeroing out pInfo is a bad idea as it should contain both short and long names at
128 // memset(pInfo, 0, sizeof(*pInfo));
137 pInfo->enmMediumType = NETIF_T_ETHERNET;
140 pInfo->enmMediumType = NETIF_T_UNKNOWN;
150 pInfo->Uuid = uuid;
152 memcpy(&pInfo->MACAddress, Req.ifr_hwaddr.sa_data, sizeof(pInfo->MACAddress));
155 memcpy(pInfo->IPAddress.au8,
157 sizeof(pInfo->IPAddress.au8));
160 memcpy(pInfo->IPNetMask.au8,
162 sizeof(pInfo->IPNetMask.au8));
165 pInfo->enmStatus = Req.ifr_flags & IFF_UP ? NETIF_S_UP : NETIF_S_DOWN;
192 pInfo->IPv6Address.au32[0] = htonl(IPv6Address.au32[0]);
193 pInfo->IPv6Address.au32[1] = htonl(IPv6Address.au32[1]);
194 pInfo->IPv6Address.au32[2] = htonl(IPv6Address.au32[2]);
195 pInfo->IPv6Address.au32[3] = htonl(IPv6Address.au32[3]);
196 ASMBitSetRange(&pInfo->IPv6NetMask, 0, uLength);
205 if (pInfo->enmMediumType == NETIF_T_ETHERNET)
206 pInfo->uSpeedMbits = getInterfaceSpeed(pszName);
208 pInfo->uSpeedMbits = 0;
273 int NetIfGetConfigByName(PNETIFINFO pInfo)
279 rc = getInterfaceInfo(sock, pInfo->szShortName, pInfo);