Lines Matching refs:ifreqs
37 ifreqs::socketDomain = domain; in useSocketDomain()
45 auto ifr = ifreqs::fromName(ifname); in up()
46 if (!ifreqs::send(SIOCGIFFLAGS, ifr)) return false; in up()
48 return ifreqs::send(SIOCSIFFLAGS, ifr); in up()
52 auto ifr = ifreqs::fromName(ifname); in down()
53 if (!ifreqs::send(SIOCGIFFLAGS, ifr)) return false; in down()
55 return ifreqs::send(SIOCSIFFLAGS, ifr); in down()
81 auto ifr = ifreqs::fromName(ifname); in getHwAddr()
82 if (!ifreqs::send(SIOCGIFHWADDR, ifr)) return std::nullopt; in getHwAddr()
90 auto ifr = ifreqs::fromName(ifname); in setHwAddr()
93 if (!ifreqs::send(SIOCGIFHWADDR, ifr)) return false; in setHwAddr()
96 return ifreqs::send(SIOCSIFHWADDR, ifr); in setHwAddr()
100 auto ifr = ifreqs::fromName(ifname); in isUp()
101 if (!ifreqs::send(SIOCGIFFLAGS, ifr)) return std::nullopt; in isUp()
106 auto ifr = ifreqs::fromName(ifname); in hasIpv4()
107 switch (ifreqs::trySend(SIOCGIFADDR, ifr)) { in hasIpv4()