Home
last modified time | relevance | path

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

/device/google/cuttlefish/host/commands/assemble_cvd/
Dnetwork_flags.cpp59 bool ParseInterfaceAttributes(struct ifaddrs* ifa) { in ParseInterfaceAttributes() argument
64 sa = reinterpret_cast<sockaddr_in*>(ifa->ifa_addr); in ParseInterfaceAttributes()
70 sa = reinterpret_cast<sockaddr_in*>(ifa->ifa_broadaddr); in ParseInterfaceAttributes()
81 << ifa->ifa_name << ", which is invalid."; in ParseInterfaceAttributes()
86 sa = reinterpret_cast<sockaddr_in*>(ifa->ifa_netmask); in ParseInterfaceAttributes()
102 LOG(ERROR) << "No available address found in interface " << ifa->ifa_name; in ParseInterfaceAttributes()
113 struct ifaddrs *ifa_list{}, *ifa{}; in ParseInterfaceAttributes() local
116 for (ifa = ifa_list; ifa; ifa = ifa->ifa_next) { in ParseInterfaceAttributes()
117 if (strcmp(ifa->ifa_name, interface.c_str()) == 0 && in ParseInterfaceAttributes()
118 ifa->ifa_addr->sa_family == AF_INET) { in ParseInterfaceAttributes()
[all …]
/device/google/cuttlefish/common/libs/utils/
Dnetwork.cpp94 struct ifaddrs *ifa_list{}, *ifa{}; in NetworkInterfaceExists() local
97 for (ifa = ifa_list; ifa; ifa = ifa->ifa_next) { in NetworkInterfaceExists()
98 if (strcmp(ifa->ifa_name, interface_name.c_str()) == 0) { in NetworkInterfaceExists()
/device/linaro/dragonboard/shared/utils/qrtr/src/
Daddr.c19 struct ifaddrmsg ifa; in qrtr_set_address() member
54 req.ifa.ifa_family = AF_QIPCRTR; in qrtr_set_address()