Lines Matching refs:pNew
238 PNETIFINFO pNew = (PNETIFINFO)RTMemAllocZ(RT_OFFSETOF(NETIFINFO, szName[cbNameLen]));
239 if (!pNew)
244 memcpy(pNew->MACAddress.au8, LLADDR(pSdl), sizeof(pNew->MACAddress.au8));
245 pNew->enmMediumType = NETIF_T_ETHERNET;
246 Assert(sizeof(pNew->szShortName) >= cbNameLen);
247 strlcpy(pNew->szShortName, pSdl->sdl_data, cbNameLen);
248 strlcpy(pNew->szName, pSdl->sdl_data, cbNameLen);
252 memcpy(&uuid, pNew->szShortName, RT_MIN(cbNameLen, sizeof(uuid)));
255 memcpy(uuid.Gen.au8Node, pNew->MACAddress.au8, sizeof(uuid.Gen.au8Node));
256 pNew->Uuid = uuid;
268 pNew);
275 RTStrCopy(IfReq.ifr_name, sizeof(IfReq.ifr_name), pNew->szShortName);
279 pNew->enmStatus = NETIF_S_UNKNOWN;
282 pNew->enmStatus = (IfReq.ifr_flags & IFF_UP) ? NETIF_S_UP : NETIF_S_DOWN;
285 if (strncmp(pNew->szName, RT_STR_TUPLE("vboxnet")))
292 if (SUCCEEDED(IfObj->init(Bstr(pNew->szName), enmType, pNew)))
302 RTMemFree(pNew);