Lines Matching defs:ifreq
155 if (iter->ifc.ifc_len + 2 * sizeof(struct ifreq)
430 struct ifreq *ifrp;
431 struct ifreq ifreq;
454 ifrp = (struct ifreq *)((char *) iter->ifc.ifc_req + iter->pos);
456 memset(&ifreq, 0, sizeof(ifreq));
457 memmove(&ifreq, ifrp, sizeof(ifreq));
459 family = ifreq.ifr_addr.sa_family;
470 INSIST(sizeof(ifreq.ifr_name) <= sizeof(iter->current.name));
472 memmove(iter->current.name, ifreq.ifr_name, sizeof(ifreq.ifr_name));
475 (struct sockaddr *)&ifrp->ifr_addr, ifreq.ifr_name);
503 if (ioctl(iter->socket, SIOCGIFFLAGS, (char *) &ifreq) < 0) {
507 ifreq.ifr_name, strbuf);
511 if ((ifreq.ifr_flags & IFF_UP) != 0)
515 if ((ifreq.ifr_flags & IFF_POINTOPOINT) != 0)
519 if ((ifreq.ifr_flags & IFF_LOOPBACK) != 0)
535 ifreq.ifr_name, strbuf);
581 if (ioctl(iter->socket, SIOCGIFDSTADDR, (char *)&ifreq)
590 ifreq.ifr_name, strbuf);
594 (struct sockaddr *)&ifreq.ifr_dstaddr, ifreq.ifr_name);
601 memset(&ifreq, 0, sizeof(ifreq));
602 memmove(&ifreq, ifrp, sizeof(ifreq));
608 if (ioctl(iter->socket, SIOCGIFNETMASK, (char *)&ifreq) < 0) {
615 ifreq.ifr_name, strbuf);
619 (struct sockaddr *)&ifreq.ifr_addr, ifreq.ifr_name);
813 struct ifreq *ifrp;
818 ifrp = (struct ifreq *)((char *) iter->ifc.ifc_req + iter->pos);
825 iter->pos += sizeof(struct ifreq);