Searched defs:IfReq (Results 1 - 5 of 5) sorted by relevance

/vbox/src/VBox/Main/src-server/darwin/
H A DNetIf-darwin.cpp87 struct ifreq IfReq;
88 RTStrCopy(IfReq.ifr_name, sizeof(IfReq.ifr_name), pNew->szShortName);
89 if (ioctl(sock, SIOCGIFFLAGS, &IfReq) < 0)
95 pNew->enmStatus = (IfReq.ifr_flags & IFF_UP) ? NETIF_S_UP : NETIF_S_DOWN;
393 struct ifreq IfReq; local
394 RTStrCopy(IfReq.ifr_name, sizeof(IfReq.ifr_name), pNew->szShortName);
395 if (ioctl(sock, SIOCGIFFLAGS, &IfReq) < 0)
401 pNew->enmStatus = (IfReq
515 struct ifreq IfReq; local
[all...]
/vbox/src/VBox/Main/src-server/freebsd/
H A DNetIf-freebsd.cpp274 struct ifreq IfReq; local
275 RTStrCopy(IfReq.ifr_name, sizeof(IfReq.ifr_name), pNew->szShortName);
276 if (ioctl(sock, SIOCGIFFLAGS, &IfReq) < 0)
282 pNew->enmStatus = (IfReq.ifr_flags & IFF_UP) ? NETIF_S_UP : NETIF_S_DOWN;
393 struct ifreq IfReq; local
394 RTStrCopy(IfReq.ifr_name, sizeof(IfReq.ifr_name), pInfo->szShortName);
395 if (ioctl(sock, SIOCGIFFLAGS, &IfReq) < 0)
401 pInfo->enmStatus = (IfReq
[all...]
/vbox/src/VBox/Main/src-server/solaris/
H A DNetIf-solaris.cpp220 struct lifreq IfReq; local
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
259 struct lifreq IfReq; local
[all...]
/vbox/src/apps/adpctl/
H A DVBoxNetAdpCtl.cpp316 struct ifreq IfReq; local
329 memset(&IfReq, 0, sizeof(IfReq));
330 snprintf(IfReq.ifr_name, sizeof(IfReq.ifr_name), "%s", pszAdapterName);
333 IfReq.ifr_data = (caddr_t)&EthToolVal;
334 rc = ioctl(fd, SIOCETHTOOL, &IfReq);
339 memset(&IfReq, 0, sizeof(IfReq));
340 snprintf(IfReq
[all...]
/vbox/src/VBox/Main/src-client/
H A DConsoleImpl.cpp8828 struct ifreq IfReq; local
8829 RT_ZERO(IfReq);
8845 RTStrCopy(IfReq.ifr_name, sizeof(IfReq.ifr_name), str.c_str()); /** @todo bitch about names which are too long... */
8846 IfReq.ifr_flags = IFF_TAP | IFF_NO_PI;
8847 rcVBox = ioctl(RTFileToNative(maTapFD[slot]), TUNSETIFF, &IfReq);

Completed in 2119 milliseconds