Lines Matching defs:ah
77 struct ether_arp *ah;
111 ah = &wbuf.data.arp;
112 ah->arp_hrd = htons(ARPHRD_ETHER);
113 ah->arp_pro = htons(ETHERTYPE_IP);
114 ah->arp_hln = sizeof(ah->arp_sha); /* hardware address length */
115 ah->arp_pln = sizeof(ah->arp_spa); /* protocol address length */
116 ah->arp_op = htons(ARPOP_REQUEST);
117 MACPY(d->myea, ah->arp_sha);
118 bcopy(&d->myip, ah->arp_spa, sizeof(ah->arp_spa));
120 bcopy(&addr, ah->arp_tpa, sizeof(ah->arp_tpa));
134 ah = &rbuf.data.arp;
140 inet_ntoa(addr), ether_sprintf(ah->arp_sha));
143 MACPY(ah->arp_sha, al->ea);
176 struct ether_arp *ah;
204 ah = (struct ether_arp *)pkt;
205 if (ah->arp_hrd != htons(ARPHRD_ETHER) ||
206 ah->arp_pro != htons(ETHERTYPE_IP) ||
207 ah->arp_hln != sizeof(ah->arp_sha) ||
208 ah->arp_pln != sizeof(ah->arp_spa) )
217 if (ah->arp_op == htons(ARPOP_REQUEST)) {
222 arp_reply(d, ah);
226 if (ah->arp_op != htons(ARPOP_REPLY)) {
236 ah->arp_spa, sizeof(ah->arp_spa)))