Home
last modified time | relevance | path

Searched refs:if_index (Results 1 – 10 of 10) sorted by relevance

/system/connectivity/wificond/net/
Dnetlink_manager.cpp565 uint32_t if_index; in BroadcastHandler() local
566 if (!packet->GetAttributeValue(NL80211_ATTR_IFINDEX, &if_index)) { in BroadcastHandler()
570 const auto handler = on_station_event_handler_.find(if_index); in BroadcastHandler()
631 uint32_t if_index; in OnMlmeEvent() local
633 if (!packet->GetAttributeValue(NL80211_ATTR_IFINDEX, &if_index)) { in OnMlmeEvent()
637 const auto handler = on_mlme_event_handler_.find(if_index); in OnMlmeEvent()
640 << " with index: " << if_index; in OnMlmeEvent()
683 uint32_t if_index; in OnSchedScanResultsReady() local
684 if (!packet->GetAttributeValue(NL80211_ATTR_IFINDEX, &if_index)) { in OnSchedScanResultsReady()
689 const auto handler = on_sched_scan_result_ready_handler_.find(if_index); in OnSchedScanResultsReady()
[all …]
Dnetlink_utils.h38 InterfaceInfo(uint32_t if_index, in InterfaceInfo()
42 : if_index(if_index), in InterfaceInfo()
47 uint32_t if_index; member
Dmlme_event.cpp36 uint32_t* if_index, in GetCommonFields() argument
38 if (!packet->GetAttributeValue(NL80211_ATTR_IFINDEX, if_index)) { in GetCommonFields()
Dnetlink_utils.cpp238 uint32_t if_index; in GetInterfaces() local
239 if (!packet->GetAttributeValue(NL80211_ATTR_IFINDEX, &if_index)) { in GetInterfaces()
261 interface_info->emplace_back(if_index, wiphy_index, if_name, if_mac_addr); in GetInterfaces()
/system/core/libnetutils/
Dpacket.h22 int open_raw_socket(const char* ifname, uint8_t hwaddr[ETH_ALEN], int if_index);
23 int send_packet(int s, int if_index, struct dhcp_msg *msg, int size,
Dpacket.c42 int open_raw_socket(const char* ifname __unused, uint8_t hwaddr[ETH_ALEN], int if_index) { in open_raw_socket() argument
49 .sll_ifindex = if_index, in open_raw_socket()
86 int send_packet(int s, int if_index, struct dhcp_msg *msg, int size, in send_packet() argument
139 destaddr.sll_ifindex = if_index; in send_packet()
Ddhcpclient.c342 static int send_message(int sock, int if_index, dhcp_msg *msg, int size) in send_message() argument
347 return send_packet(sock, if_index, msg, size, INADDR_ANY, INADDR_BROADCAST, in send_message()
401 int if_index; in dhcp_init_ifc() local
408 if (ifc_get_ifindex(ifname, &if_index)) { in dhcp_init_ifc()
412 s = open_raw_socket(ifname, hwaddr, if_index); in dhcp_init_ifc()
457 r = send_message(s, if_index, msg, size); in dhcp_init_ifc()
/system/connectivity/wificond/scanning/
Dscan_utils.cpp112 uint32_t if_index; in GetScanResult() local
113 if (!packet->GetAttributeValue(NL80211_ATTR_IFINDEX, &if_index)) { in GetScanResult()
117 if (if_index != interface_index) { in GetScanResult()
118 LOG(WARNING) << "Uninteresting scan result for interface: " << if_index; in GetScanResult()
/system/connectivity/wificond/
Dserver.cpp138 interface.if_index, in createApInterface()
200 interface.if_index, in createClientInterface()
292 ss << "Interface index: " << iface.if_index in dump()
/system/connectivity/wificond/tests/
Dnetlink_utils_unittest.cpp460 EXPECT_EQ(kFakeInterfaceIndex, interfaces[0].if_index); in TEST_F()
500 EXPECT_EQ(kFakeInterfaceIndex, interfaces[0].if_index); in TEST_F()
551 EXPECT_EQ(kFakeInterfaceIndex1, interfaces[0].if_index); in TEST_F()
556 EXPECT_EQ(kFakeInterfaceIndex, interfaces[1].if_index); in TEST_F()