Lines Matching defs:respPacket
149 struct ArpPacket *respPacket = reinterpret_cast<struct ArpPacket*>(recvBuff);
150 if (ntohs(respPacket->ar_hrd) == ARPHRD_ETHER &&
151 ntohs(respPacket->ar_pro) == ETH_P_IP &&
152 respPacket->ar_hln == ETH_ALEN &&
153 respPacket->ar_pln == IPV4_ALEN &&
154 ntohs(respPacket->ar_op) == ARPOP_REPLY &&
155 memcmp(respPacket->ar_sha, m_localMacAddr, ETH_ALEN) != 0 &&
156 memcmp(respPacket->ar_spa, &m_targetIpAddr, IPV4_ALEN) == 0) {
197 struct ArpPacket *respPacket = reinterpret_cast<struct ArpPacket*>(recvBuff);
198 if (ntohs(respPacket->ar_hrd) == ARPHRD_ETHER &&
199 ntohs(respPacket->ar_pro) == ETH_P_IP &&
200 respPacket->ar_hln == ETH_ALEN &&
201 respPacket->ar_pln == IPV4_ALEN &&
202 ntohs(respPacket->ar_op) == ARPOP_REPLY &&
203 memcmp(respPacket->ar_sha, m_localMacAddr, ETH_ALEN) != 0 &&
204 memcmp(respPacket->ar_spa, &m_targetIpAddr, IPV4_ALEN) == 0) {
205 std::string gwMacAddr = MacArray2Str(respPacket->ar_sha, ETH_ALEN);