Lines Matching defs:ifr
73 struct ifreq ifr;
83 memset(&ifr, 0, sizeof(ifr));
84 strncpy(ifr.ifr_name, ifname, IFNAMSIZ);
86 if ((rv = rump_sys_ioctl(s, SIOCIFDESTROY, &ifr)) < 0) {
285 struct ifreq ifr;
293 strcpy(ifr.ifr_name, ifname );
294 if ((rv = rump_sys_ioctl(s, SIOCGIFINDEX, &ifr)) < 0) {
297 ATF_CHECK_MSG(ifr.ifr_ifindex > 0, "%s index is %d (not > 0)",
298 ifname, ifr.ifr_ifindex);
301 sa.can_ifindex = ifr.ifr_ifindex;
348 struct ifreq ifr;
356 strcpy(ifr.ifr_name, ifname );
357 if ((rv = rump_sys_ioctl(s, SIOCGIFINDEX, &ifr)) < 0) {
360 ATF_CHECK_MSG(ifr.ifr_ifindex > 0, "%s index is %d (not > 0)",
361 ifname, ifr.ifr_ifindex);
364 sa.can_ifindex = ifr.ifr_ifindex;