Lines Matching defs:p_ARP
78 arp_header_t *p_ARP;
80 p_ARP = (arp_header_t*)transmitBuffer;
82 p_memset((char*)p_ARP->dest_mac, 0xFF, 6);
84 memcpy(p_ARP->src_mac, localMACAddr, 6);
86 p_ARP->frame_type = SWAP16(PROTOCOL_ARP);
87 p_ARP->hard_type = SWAP16(1);
88 p_ARP->prot_type = SWAP16(PROTOCOL_IP);
89 p_ARP->hard_size = 6;
90 p_ARP->prot_size = 4;
91 p_ARP->operation = SWAP16(ARP_REQUEST);
93 memcpy(p_ARP->sender_mac, localMACAddr, 6);
94 memcpy(p_ARP->sender_ip, localIPAddr, 4);
95 p_memset((char*)p_ARP->target_mac, 0, 6);
96 memcpy(p_ARP->target_ip, serverIPAddr, 4);
238 arp_header_t *p_ARP;
260 p_ARP = (arp_header_t*)pData;
261 if (p_ARP->operation == SWAP16(ARP_REPLY)) {
264 (!(p_memcmp((char*)p_ARP->sender_ip,
268 memcpy(serverMACAddr, p_ARP->sender_mac, 6);
270 } else if (p_ARP->operation == SWAP16(ARP_REQUEST)) {
272 p_ARP->operation = SWAP16(ARP_REPLY);