Home
last modified time | relevance | path

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

/hardware/interfaces/automotive/can/1.0/default/libnetdevice/
Dlibnetdevice.cpp35 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()
[all …]
Dethtool.cpp29 auto ifr = ifreqs::fromName(ifname); in getValue()
32 if (!ifreqs::send(SIOCETHTOOL, ifr)) return std::nullopt; in getValue()
41 auto ifr = ifreqs::fromName(ifname); in setValue()
44 return ifreqs::send(SIOCETHTOOL, ifr); in setValue()
Difreqs.h23 namespace android::netdevice::ifreqs {
Difreqs.cpp26 namespace android::netdevice::ifreqs { namespace