Home
last modified time | relevance | path

Searched refs:my_ifr (Results 1 – 1 of 1) sorted by relevance

/freebsd/sbin/ifconfig/
H A Difconfig.c1373 struct ifreq my_ifr; in getifflags() local
1376 memset(&my_ifr, 0, sizeof(my_ifr)); in getifflags()
1377 (void) strlcpy(my_ifr.ifr_name, ifname, sizeof(my_ifr.ifr_name)); in getifflags()
1383 if (ioctl(s, SIOCGIFFLAGS, (caddr_t)&my_ifr) < 0) { in getifflags()
1391 return ((my_ifr.ifr_flags & 0xffff) | (my_ifr.ifr_flagshigh << 16)); in getifflags()
1402 struct ifreq my_ifr; in clearifflags() local
1407 memset(&my_ifr, 0, sizeof(my_ifr)); in clearifflags()
1408 strlcpy(my_ifr.ifr_name, ctx->ifname, sizeof(my_ifr.ifr_name)); in clearifflags()
1409 my_ifr.ifr_flags = flags & 0xffff; in clearifflags()
1410 my_ifr.ifr_flagshigh = flags >> 16; in clearifflags()
[all …]