Lines Matching refs:lifreq
529 #define LIFREQ lifreq
535 struct LIFREQ lifreq;
578 if (lifc.lifc_len + 2 * sizeof(lifreq) < bufsiz)
598 memmove(&lifreq, cp, sizeof(lifreq));
601 if (lifreq.lifr_addr.sa_len == 0)
602 lifreq.lifr_addr.sa_len = 16;
605 cpsize = sizeof(lifreq);
606 if (lifreq.lifr_addr.sa_len > sizeof(struct sockaddr))
607 cpsize += (int)lifreq.lifr_addr.sa_len -
610 cpsize = sizeof(lifreq.lifr_name) + lifreq.lifr_addr.sa_len;
613 cpsize = sizeof(lifreq);
615 cpsize = sizeof(lifreq.lifr_name);
617 if (ioctl(s, SIOCGLIFADDR, (char *)&lifreq) < 0)
620 switch (lifreq.lifr_addr.ss_family) {
625 &lifreq.lifr_addr)->sin_addr,
629 n = ioctl(s, SIOCGLIFFLAGS, (char *)&lifreq);
632 if ((lifreq.lifr_flags & IFF_UP) == 0)
641 &lifreq.lifr_addr)->sin6_addr,
646 n = ioctl(s, SIOCGLIFFLAGS, (char *)&lifreq);
649 if ((lifreq.lifr_flags & IFF_UP) == 0)