Lines Matching defs:ea
93 struct ether_addr ea;
97 struct ether_addr ea;
491 enaddr_copy(&adr.loc.ea, eh->ether_shost);
492 enaddr_copy(&adr.rmt.ea, eh->ether_dhost);
554 struct ether_arp aligned_ea, *ea = &aligned_ea;
558 memcpy((void *)ea, (void *)&pkt.data[arp_header_offset], sizeof(*ea));
560 switch(ntohs(ea->arp_op)) {
562 kdp_arp_reply(ea);
565 kdp_process_arp_reply(ea);
573 kdp_process_arp_reply(struct ether_arp *ea)
580 if (((struct in_addr *)(ea->arp_spa))->s_addr != target_ip)
584 current_resolved_MAC = *(struct ether_addr *) (ea->arp_sha);
594 kdp_arp_reply(struct ether_arp *ea)
604 if(ntohs(ea->arp_op) != ARPOP_REQUEST)
620 (void)memcpy((void *)&isaddr, (void *)ea->arp_spa, sizeof (isaddr));
621 (void)memcpy((void *)&itaddr, (void *)ea->arp_tpa, sizeof (itaddr));
624 (void)memcpy((void *)ea->arp_tha, (void *)ea->arp_sha, sizeof(ea->arp_sha));
625 (void)memcpy((void *)ea->arp_sha, (void *)&my_enaddr, sizeof(ea->arp_sha));
627 (void)memcpy((void *)ea->arp_tpa, (void *) ea->arp_spa, sizeof(ea->arp_spa));
628 (void)memcpy((void *)ea->arp_spa, (void *) &itaddr, sizeof(ea->arp_spa));
630 ea->arp_op = htons(ARPOP_REPLY);
631 ea->arp_pro = htons(ETHERTYPE_IP);
632 (void)memcpy(eh->ether_dhost, ea->arp_tha, sizeof(eh->ether_dhost));
635 (void)memcpy(&pkt.data[pkt.off], ea, sizeof(*ea));
726 enaddr_copy(eh->ether_dhost, &adr.loc.ea);
729 enaddr_copy(eh->ether_shost, &adr.rmt.ea);
748 struct ether_arp *ea = (struct ether_arp *) &pkt.data[sizeof(struct ether_header)];
757 ea->arp_pro = htons(ETHERTYPE_IP);
758 ea->arp_hln = sizeof(ea->arp_sha);
759 ea->arp_pln = sizeof(ea->arp_spa);
760 ea->arp_hrd = htons(ARPHRD_ETHER);
761 ea->arp_op = htons(ARPOP_REQUEST);
764 enaddr_copy(ðerbroadcastaddr, ea->arp_tha);
765 memcpy(ea->arp_tpa, (void *) &ip_addr, sizeof(ip_addr));
768 enaddr_copy(&kdp_current_mac_address, ea->arp_sha);
769 memcpy(ea->arp_spa, (void *) &kdp_current_ip_address, sizeof(kdp_current_ip_address));