Home
last modified time | relevance | path

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

/system/connectivity/shill/
Darp_client.cc101 sockaddr_ll socket_address; in CreateSocket() local
102 memset(&socket_address, 0, sizeof(socket_address)); in CreateSocket()
103 socket_address.sll_family = AF_PACKET; in CreateSocket()
104 socket_address.sll_protocol = htons(ETHERTYPE_ARP); in CreateSocket()
105 socket_address.sll_ifindex = interface_index_; in CreateSocket()
108 reinterpret_cast<struct sockaddr*>(&socket_address), in CreateSocket()
109 sizeof(socket_address)) != 0) { in CreateSocket()
119 sockaddr_ll socket_address; in ReceivePacket() local
120 memset(&socket_address, 0, sizeof(socket_address)); in ReceivePacket()
121 socklen_t socklen = sizeof(socket_address); in ReceivePacket()
[all …]
Deap_listener.cc82 sockaddr_ll socket_address; in CreateSocket() local
83 memset(&socket_address, 0, sizeof(socket_address)); in CreateSocket()
84 socket_address.sll_family = AF_PACKET; in CreateSocket()
85 socket_address.sll_protocol = htons(ETH_P_PAE); in CreateSocket()
86 socket_address.sll_ifindex = interface_index_; in CreateSocket()
89 reinterpret_cast<struct sockaddr*>(&socket_address), in CreateSocket()
90 sizeof(socket_address)) != 0) { in CreateSocket()
Deap_listener_unittest.cc115 const struct sockaddr_ll* socket_address = variable
117 return socket_address->sll_family == AF_PACKET &&
118 socket_address->sll_protocol == htons(ETH_P_PAE) &&
119 socket_address->sll_ifindex == interface_index;
Darp_client_unittest.cc100 const struct sockaddr_ll* socket_address = variable
103 reinterpret_cast<const unsigned char*>(&socket_address->sll_addr),
105 return socket_address->sll_family == AF_PACKET &&
106 socket_address->sll_protocol == htons(ETHERTYPE_ARP) &&
107 socket_address->sll_ifindex == interface_index &&