Lines Matching refs:ifr
72 struct ifreq ifr; in main() local
73 memset(&ifr, '\0', sizeof(ifr)); in main()
74 ifr.ifr_flags = IFF_TUN | IFF_NO_PI | IFF_NOFILTER; in main()
75 strcpy(ifr.ifr_name, "FUZZ0"); in main()
81 if (ioctl(fd, TUNSETIFF, (void*)&ifr) != 0) { in main()
121 struct sockaddr_in* sa = (struct sockaddr_in*)(&ifr.ifr_addr); in main()
124 if (ioctl(tcp_sock, SIOCSIFADDR, &ifr) == -1) { in main()
128 if (ioctl(tcp_sock, SIOCSIFDSTADDR, &ifr) == -1) { in main()
132 if (ioctl(tcp_sock, SIOCGIFFLAGS, &ifr) == -1) { in main()
135 ifr.ifr_flags |= (IFF_UP | IFF_RUNNING); in main()
136 if (ioctl(tcp_sock, SIOCSIFFLAGS, &ifr) == -1) { in main()