Lines Matching refs:ifr
110 struct ifreq ifr;
112 memset(&ifr, 0, sizeof(ifr));
113 (void) strlcpy(ifr.ifr_name, name, sizeof(ifr.ifr_name));
117 if (ioctl(s, SIOCIFCREATE2, &ifr) < 0)
120 if (ioctl(s, SIOCIFCREATE, &ifr) < 0)
124 clone_cb(s, &ifr);
130 if (strncmp(name, ifr.ifr_name, sizeof(name)) != 0) {
131 strlcpy(name, ifr.ifr_name, sizeof(name));
145 (void) strncpy(ifr.ifr_name, name, sizeof(ifr.ifr_name));
146 if (ioctl(s, SIOCIFDESTROY, &ifr) < 0)