Searched refs:socket_address (Results 1 – 4 of 4) sorted by relevance
101 sockaddr_ll socket_address; in CreateSocket() local102 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() local120 memset(&socket_address, 0, sizeof(socket_address)); in ReceivePacket()121 socklen_t socklen = sizeof(socket_address); in ReceivePacket()[all …]
82 sockaddr_ll socket_address; in CreateSocket() local83 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()
115 const struct sockaddr_ll* socket_address = variable117 return socket_address->sll_family == AF_PACKET &&118 socket_address->sll_protocol == htons(ETH_P_PAE) &&119 socket_address->sll_ifindex == interface_index;
100 const struct sockaddr_ll* socket_address = variable103 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 &&