Lines Matching defs:ifreq
95 struct ifreq ifreq;
220 ifreq.ifr_jid = jid;
221 strncpy(ifreq.ifr_name, argv[1], sizeof(ifreq.ifr_name));
222 if (ioctl(s, SIOCSIFVNET, (caddr_t)&ifreq) < 0)
229 ifreq.ifr_data = ifname;
231 if (strcmp(ifreq.ifr_name, ifname) != 0) {
240 while (ioctl(s, SIOCSIFNAME, (caddr_t)&ifreq) < 0) {
251 printf("%s@%s\n", ifreq.ifr_name, argv[0]);