Lines Matching defs:ifreq
26 static struct iovec ifreq = {
34 struct ifreq *ifr;
45 len += 10*sizeof(struct ifreq);
72 len = sizeof(struct ifreq);
75 ifr = (struct ifreq *)ptr;
77 len = ifr->ifr_addr.sa_len + offsetof(struct ifreq, ifr_ifru);
80 if (!expand_buf(&ifreq, len))
83 ifr = (struct ifreq *)ifreq.iov_base;
143 if (expand_buf(&ifreq, sizeof(struct ifreq)))
145 sprintf(ifreq.iov_base, "/dev/bpf%d", i++);
146 if ((daemon->dhcp_raw_fd = open(ifreq.iov_base, O_RDWR, 0)) != -1)
155 struct in_addr iface_addr, struct ifreq *ifr)