Lines Matching refs:ifreqs
35 ifreqs::socketDomain = domain; in useSocketDomain()
43 auto ifr = ifreqs::fromName(ifname); in up()
44 if (!ifreqs::send(SIOCGIFFLAGS, ifr)) return false; in up()
46 return ifreqs::send(SIOCSIFFLAGS, ifr); in up()
50 auto ifr = ifreqs::fromName(ifname); in down()
51 if (!ifreqs::send(SIOCGIFFLAGS, ifr)) return false; in down()
53 return ifreqs::send(SIOCSIFFLAGS, ifr); in down()
79 auto ifr = ifreqs::fromName(ifname); in getHwAddr()
80 if (!ifreqs::send(SIOCGIFHWADDR, ifr)) return std::nullopt; in getHwAddr()
88 auto ifr = ifreqs::fromName(ifname); in setHwAddr()
91 if (!ifreqs::send(SIOCGIFHWADDR, ifr)) return false; in setHwAddr()
94 return ifreqs::send(SIOCSIFHWADDR, ifr); in setHwAddr()
98 auto ifr = ifreqs::fromName(ifname); in isUp()
99 if (!ifreqs::send(SIOCGIFFLAGS, ifr)) return std::nullopt; in isUp()