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