Lines Matching defs:ifr
326 struct ifreq ifr;
329 memset(&ifr, 0, sizeof(ifr));
330 strncpy(ifr.ifr_name, device, IFNAMSIZ-1);
339 if (ioctl(probe_fd, SIOCGIFINDEX, &ifr) < 0) {
344 imr.imr_ifindex = ifr.ifr_ifindex;
430 struct ifreq ifr;
432 memset(&ifr, 0, sizeof(ifr));
433 strncpy(ifr.ifr_name, device, IFNAMSIZ-1);
434 if (ioctl(icmp_sock, SIOCGIFINDEX, &ifr) < 0) {
438 cmsg.ipi.ipi_ifindex = ifr.ifr_ifindex;