Lines Matching refs:pInfo
93 static int collectNetIfInfo(Bstr &strName, Guid &guid, PNETIFINFO pInfo, int iDefault)
125 if (!RTUuidCompareStr(&pInfo->Uuid, pszUuid + 1))
138 memcpy(&pInfo->IPAddress,
140 sizeof(pInfo->IPAddress));
147 memcpy(&pInfo->IPv6Address,
149 sizeof(pInfo->IPv6Address));
163 if (pPrefix->PrefixLength <= sizeof(pInfo->IPNetMask) * 8)
166 ASMBitSetRange(&pInfo->IPNetMask, 0, pPrefix->PrefixLength);
176 if (pPrefix->PrefixLength <= sizeof(pInfo->IPv6NetMask) * 8)
179 ASMBitSetRange(&pInfo->IPv6NetMask, 0, pPrefix->PrefixLength);
188 if (sizeof(pInfo->MACAddress) != pAdapter->PhysicalAddressLength)
191 memcpy(pInfo->MACAddress.au8, pAdapter->PhysicalAddress, sizeof(pInfo->MACAddress));
192 pInfo->enmMediumType = NETIF_T_ETHERNET;
193 pInfo->enmStatus = pAdapter->OperStatus == IfOperStatusUp ? NETIF_S_UP : NETIF_S_DOWN;
194 pInfo->bIsDefault = (pAdapter->IfIndex == iDefault);
208 pInfo->IPAddress.u = Settings.ip;
209 pInfo->IPNetMask.u = Settings.mask;
211 pInfo->bDhcpEnabled = Settings.bDhcp;
215 pInfo->bDhcpEnabled = false;
1056 int NetIfGetConfig(HostNetworkInterface * pIf, NETIFINFO *pInfo)
1070 memset(pInfo, 0, sizeof(NETIFINFO));
1072 pInfo->Uuid = *(guid.raw());
1074 return collectNetIfInfo(name, guid, pInfo, getDefaultInterfaceIndex());