Lines Matching refs:arp_ea
63 struct ether_arp arp_ea;
106 out->arp_ea.arp_hrd = htons(ARPHRD_ETHER);
107 out->arp_ea.arp_pro = htons(ETHERTYPE_IP);
108 out->arp_ea.arp_hln = sizeof (ether_addr_t);
109 out->arp_ea.arp_pln = sizeof (struct in_addr);
110 bcopy(mac_state.mac_addr_buf, (caddr_t)&out->arp_ea.arp_sha,
114 bcopy((caddr_t)&tmp_ia, (caddr_t)out->arp_ea.arp_spa,
121 if (out->arp_ea.arp_op == ARPOP_REQUEST) {
122 bcopy((caddr_t)out->arp_ea.arp_tpa,
129 ether_print(out->arp_ea.arp_tha));
145 if (in->arp_ea.arp_pro != ntohs(ETHERTYPE_IP))
147 if (out->arp_ea.arp_op == ntohs(ARPOP_REQUEST)) {
151 if (in->arp_ea.arp_op != ntohs(ARPOP_REPLY))
153 if (bcmp((caddr_t)in->arp_ea.arp_spa,
154 (caddr_t)out->arp_ea.arp_tpa,
158 bcopy((caddr_t)in->arp_ea.arp_spa,
163 ether_print(in->arp_ea.arp_sha));
166 bcopy((caddr_t)&in->arp_ea.arp_sha,
167 (caddr_t)&out->arp_ea.arp_sha,
174 if (in->arp_ea.arp_op != ntohs(REVARP_REPLY))
176 if (bcmp((caddr_t)in->arp_ea.arp_tha,
177 (caddr_t)out->arp_ea.arp_tha,
181 bcopy((caddr_t)in->arp_ea.arp_tpa,
188 bcopy((caddr_t)in->arp_ea.arp_tpa,
189 (caddr_t)out->arp_ea.arp_tpa,
222 out.arp_ea.arp_op = htons(ARPOP_REQUEST);
223 bcopy((caddr_t)etherbroadcastaddr, (caddr_t)&out.arp_ea.arp_tha,
225 bcopy((caddr_t)ip, (caddr_t)out.arp_ea.arp_tpa,
231 bcopy((caddr_t)&out.arp_ea.arp_sha, (caddr_t)ep,
254 out.arp_ea.arp_op = htons(REVARP_REQUEST);
255 bcopy(mac_state.mac_addr_buf, (caddr_t)&out.arp_ea.arp_tha,
261 bcopy((caddr_t)&out.arp_ea.arp_tpa, (caddr_t)&ip,