Lines Matching defs:IfReq
220 struct lifreq IfReq;
221 RTStrCopy(IfReq.lifr_name, sizeof(IfReq.lifr_name), szNICInstance);
222 if (ioctl(Sock, SIOCGLIFADDR, &IfReq) >= 0)
224 memcpy(Info.IPAddress.au8, &((struct sockaddr_in *)&IfReq.lifr_addr)->sin_addr.s_addr,
227 memcpy(&ArpReq.arp_pa, &IfReq.lifr_addr, sizeof(struct sockaddr_in));
242 if (ioctl(Sock, SIOCGLIFNETMASK, &IfReq) >= 0)
244 memcpy(Info.IPNetMask.au8, &((struct sockaddr_in *)&IfReq.lifr_addr)->sin_addr.s_addr,
247 if (ioctl(Sock, SIOCGLIFFLAGS, &IfReq) >= 0)
249 Info.enmStatus = IfReq.lifr_flags & IFF_UP ? NETIF_S_UP : NETIF_S_DOWN;
259 struct lifreq IfReq;
260 RTStrCopy(IfReq.lifr_name, sizeof(IfReq.lifr_name), szNICInstance);
261 if (ioctl(Sock, SIOCGLIFADDR, &IfReq) >= 0)
263 memcpy(Info.IPv6Address.au8, ((struct sockaddr_in6 *)&IfReq.lifr_addr)->sin6_addr.s6_addr,
266 if (ioctl(Sock, SIOCGLIFNETMASK, &IfReq) >= 0)
268 memcpy(Info.IPv6NetMask.au8, ((struct sockaddr_in6 *)&IfReq.lifr_addr)->sin6_addr.s6_addr,