Searched refs:areq (Results 1 – 2 of 2) sorted by relevance
772 struct arpreq areq; in GetMACAddressOfPeer() local773 memset(&areq, 0, sizeof(areq)); in GetMACAddressOfPeer()775 strncpy(areq.arp_dev, info->name.c_str(), sizeof(areq.arp_dev) - 1); in GetMACAddressOfPeer()776 areq.arp_dev[sizeof(areq.arp_dev) - 1] = '\0'; in GetMACAddressOfPeer()779 reinterpret_cast<struct sockaddr_in*>(&areq.arp_pa); in GetMACAddressOfPeer()786 reinterpret_cast<struct sockaddr_in*>(&areq.arp_ha); in GetMACAddressOfPeer()789 int err = sockets_->Ioctl(fd, SIOCGARP, &areq); in GetMACAddressOfPeer()795 ByteString peer_address(areq.arp_ha.sa_data, IFHWADDRLEN); in GetMACAddressOfPeer()
1174 const struct arpreq* const areq = static_cast<struct arpreq*>(arg); variable1175 if (areq == nullptr) {1180 reinterpret_cast<const struct sockaddr_in*>(&areq->arp_pa);1182 reinterpret_cast<const struct sockaddr_in*>(&areq->arp_ha);1185 strcmp(ifname, areq->arp_dev) == 0 &&1193 ACTION_P(SetArpreq, areq) { in ACTION_P() argument1195 *areq_arg = areq; in ACTION_P()