Searched refs:ifa (Results 1 – 3 of 3) sorted by relevance
59 bool ParseInterfaceAttributes(struct ifaddrs* ifa) { in ParseInterfaceAttributes() argument64 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() local116 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 …]
94 struct ifaddrs *ifa_list{}, *ifa{}; in NetworkInterfaceExists() local97 for (ifa = ifa_list; ifa; ifa = ifa->ifa_next) { in NetworkInterfaceExists()98 if (strcmp(ifa->ifa_name, interface_name.c_str()) == 0) { in NetworkInterfaceExists()
19 struct ifaddrmsg ifa; in qrtr_set_address() member54 req.ifa.ifa_family = AF_QIPCRTR; in qrtr_set_address()